New submission from Benjamin Schubert:

When creating a ArgumentParser on which we attach a subparser with different 
options and then add a nargs="+" argument to the initial parser, the command 
format string generated does not match the behavior.

for example it would generate :
argparse_error.py [-h] {ls,du} ... vm [vm ...]

but only accept one vm.

I would suspect a bug when parsing the arguments (as the help meets the desired 
behavior).

Attached is a little script to reproduce the error.

Thank you !

----------
components: Library (Lib)
files: argparse_error.py
messages: 242895
nosy: tellendil
priority: normal
severity: normal
status: open
title: ArgumentParser behavior does not match generated help
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file39343/argparse_error.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24166>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to