UCMDs: switches with optional value feasible?

SALT, SPICE, Subversion, etc...

UCMDs: switches with optional value feasible?

Postby MBaas on Thu Feb 09, 2012 1:48 pm

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...
User avatar
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

Return to Source Code Management

Who is online

Users browsing this forum: No registered users and 1 guest