[issue16360] argparse: comma in metavar causes assertion failure when formatting long usage message

Karthikeyan Singaravelan report at bugs.python.org
Sat Sep 22 12:44:28 EDT 2018


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Thanks @paul.j3 for the PR. The PR in the linked issue was merged and I cannot reproduce the original assertion error in the latest 2.7 branch with the script.

$ ./python.exe
Python 2.7.15+ (remotes/upstream/2.7:10be1d3f80, Sep 22 2018, 22:10:28)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
$ ./python.exe ../backups/bpo16360.py
usage: bpo16360.py [-h] [-w TIME] [-r N] [-j TIME] [-W TIME]
                   [-y COUNT|max|avg] [-o FILE] [-c CHANNEL[=LABEL],...]
                   FILE [FILE ...]
bpo16360.py: error: too few arguments


Thanks

----------
nosy: +xtreak

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue16360>
_______________________________________


More information about the Python-bugs-list mailing list