Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Sometimes applications need options that are either specified or not (a common one is "–verbose" for instance), where there is no need for a value, but simply the presence (or absence) of the flag. Our current option processing in BrowserApplicationContext and DesktopApplicationContext will not allow that – it always requires "–option=value". This could be changed. Then the Map could have a Boolean.TRUE as the value (which could be ignored, of course), but the semantics would be the same as if the option were given as ("–option=true"), but with less typing required ("--option").