Have you checked out the Wiki on this subject? I just did and from COMMAND$, picked up on something new to me:
_COMMANDCOUNT
http://qb64.org/wiki/COMMANDCOUNT
My first reaction is that this is a job for a custom designed function or sub. For which I can offer a nice Split procedure for parsing a string by any delimiter into array if you are interested.
I don't see how "rolling your own" could be avoided. Only you know the switches you wish to use and the shortest ID key press or combo that could be allowed and still work. But COMMAND$(index) does do the heavy lifting with parsing.
Aside from handling reduced forms, I don't see how the code I gave you doesn't do what you're asking. Did you try it?Not yet; see "too much hands on my time" :) From inspection, though, it's a start on what I want; I'd need to add the logic for allowing "-quux" to be abbreviated to "-q" if that's sufficient to guarantee uniqueness within the program. The more I think about the problem, the more "enhancement" I'm finding I want; really, to see my ultimate aim, read up on how PowerShell handles parameters.