End of options "/-"

From STX Wiki
Jump to navigation Jump to search

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