Modulinos: Difference between revisions
Content added Content deleted
BrianFennell (talk | contribs) |
(→{{header|REXX}}: added more boilerplate, split a multi0-line, remove extra whitespace. -- ~~~~) |
||
Line 1,278: | Line 1,278: | ||
<lang rexx>/*REXX program to detect whether or not it is a "scripted main" program.*/ |
<lang rexx>/*REXX program to detect whether or not it is a "scripted main" program.*/ |
||
parse source . howInvoke . |
parse upper source . howInvoke . |
||
if howInvoke \== 'COMMAND' then do |
|||
⚫ | |||
⚫ | |||
end |
|||
/* ┌────────────────────────────────────────────────┐ |
/* ┌────────────────────────────────────────────────┐ |
||
⚫ | |||
│ At this point, we know that this program was │ |
│ At this point, we know that this program was │ |
||
│ invoked via the "command line" and not via │ |
│ invoked via the "command line" and not via │ |
||
│ another program. │ |
│ another program. │ |
||
⚫ | |||
└────────────────────────────────────────────────┘ */ |
└────────────────────────────────────────────────┘ */ |
||
say 'and away we go ...'</lang> |
say 'and away we go ...'</lang> |
||