Menu

#2 Allow single dash instead of double dash

closed
6
2007-07-09
2007-07-09
No

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.

Discussion

  • Christian Hujer

    Christian Hujer - 2007-07-09

    Logged In: YES
    user_id=465603
    Originator: YES

    Implemented in revision 526.

     
  • Christian Hujer

    Christian Hujer - 2007-07-09
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB