No need for the Quit:

Code:
Break On
For Each $arg in GetCommandline(1)
If Left($arg,1)="$$" "Argument: "+SubStr($arg,2)+@CRLF EndIf
Next



You just need to prefix your switch with a "$". Consider the following, which in order comprises a simple switch, a complex switch with a parameter and a bare parameter value:
Quote:

C:\Temp>kix32 cl.kix $/s $/p:"A switch with a parameter" $asimpleparameter
Argument: /s
Argument: /p:A switch with a parameter
Argument: asimpleparameter




Using the "/" means that there is no chance of a variable namespace clash.