Modulinos: Difference between revisions
Content added Content deleted
m (Fix naming convention to be more standard, avoid java's jconsole, simplify code) |
m (→{{header|REXX}}: changed/added comments, changed a variable name.) |
||
Line 1,347: | Line 1,347: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
<lang rexx>/*REXX program |
<lang rexx>/*REXX program detects whether or not it is a "scripted main" program. */ |
||
parse source . howInvoked . /*ask REXX how we got invoked.*/ |
|||
if howInvoked \== "COMMAND" then exit 0 /*if not a COMMAND, just exit.*/ |
|||
/* ╔════════════════════════════════════════════════════════════╗ |
|||
parse upper source . howInvoke . |
|||
⚫ | |||
if howInvoke \== 'COMMAND' then do |
|||
║ the "command line" and not via another program. ║ |
|||
╚════════════════════════════════════════════════════════════╝ */ |
|||
return '' |
|||
end |
|||
⚫ | |||
/* ┌────────────────────────────────────────────────┐ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
│ invoked via the "command line" and not via │ |
|||
│ another program. │ |
|||
└────────────────────────────────────────────────┘ */ |
|||
⚫ | |||
Note: |
|||
⚫ | |||
⚫ | |||
=={{header|Ruby}}== |
=={{header|Ruby}}== |