UCMDs: switches with optional value feasible?
1 post
• Page 1 of 1
UCMDs: switches with optional value feasible?
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:
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...
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...
-
MBaas - Posts: 156
- Joined: Thu Oct 16, 2008 1:17 am
- Location: Gründau / Germany
1 post
• Page 1 of 1
Return to Source Code Management
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group