UCMDs: switches with optional value feasible?

SALT, SPICE, Subversion, etc...
Post Reply
User avatar
MBaas
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany
Contact:

UCMDs: switches with optional value feasible?

Post by MBaas »

Let me start w a suggestion first: a separate forum-section on ucmds might be useful... ;-)

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...
Post Reply