Allow single dash instead of double dash
Status: Beta
Brought to you by:
christianhujer
Some tools, like the tools from the Java SDK, do not use double dash -- for long options but single dash -. There should be means of configuring argparser whether to use double dash -- syntax, differing between long options and short options, and single dash - syntax where short options would be treated as long options (no option concatenation).
Examples:
Long options:
foo --bar --buzz -xzv
Java-style options:
foo -bar -buzz -x -z -v
Even better if there was a way to allow short options to be concatenated even if it is Java-style options, like this:
foo -bar -buzz -xzv
In case of ambiguity, the long options take precedence of course.
Logged In: YES
user_id=465603
Originator: YES
Implemented in revision 526.