Programmer Guide/Command Reference Options/-: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | |||
The <code>/-</code> ''end of options'' switch is available for every S_TOOLS-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. | The <code>/-</code> ''end of options'' switch is available for every S_TOOLS-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. | ||
Revision as of 17:22, 23 March 2011
The /-
end of options switch is available for every S_TOOLS-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