[issue14449] argparse optional arguments sh

2012-03-29 Thread Ernest N. Mamikonyan
Changes by Ernest N. Mamikonyan ernest.mamikon...@gmail.com: -- components: Library (Lib) nosy: mamikonyan priority: normal severity: normal status: open title: argparse optional arguments sh type: behavior versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

[issue14449] argparse optional arguments sh

2012-03-29 Thread Ernest N. Mamikonyan
New submission from Ernest N. Mamikonyan ernest.mamikon...@gmail.com: The nargs='?' option should probably follow the getopt_long(1) convention and only consume an (optional) argument if it's in the same argv element, i.e., without a space. Otherwise, it can only be given as the last option on