And my question:
Is there a way to declare a switch which may have a value, but must not?
I'm thinking of two uses for a switch:
Code: Select all
]cmd -load
]cmd -load=file.ext
The switch "load" puts the cmd into that special mode, in the first case there will be an UI for selection of a file, whereas in the 2nd case it is easy...
And "load" is the obvious name for both variants, everything else would be aesthetically unpleasing...