Programmer Guide/Command Reference Options/-: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The <code>/-</code> ''end of options'' switch is available for every | {{DISPLAYTITLE:End of options "/-"}} | ||
The <code>/-</code> ''end of options'' switch is available for every {{STX}} command that accepts flags. With the ''end of options'' switch, you indicate that any following arguments should be interpreted as plain arguments, even if they should start with a slash. | |||
For example, the following command will cause an error: | For example, the following command will cause an error: |
Latest revision as of 20:31, 29 April 2014
The /-
end of options switch is available for every STx command that accepts flags. With the end of options switch, you indicate that any following arguments should be interpreted as plain arguments, even if they should start with a slash.
For example, the following command will cause an error:
WRITELOG This /command/ will cause an error
The reason is that the slash in front of the string /command/
causes the string to be interpreted as the option /C
, and there is no such option for the WRITELOG
command. (And if there were, the text shown by the respective WRITELOG
would be "This will cause an error".)
To make the above example work (and, especially, actually show the string "This /command/ works"), you will have to use the following statement:
WRITELOG /- This /command/ works