Message250388
When trying to assign the metavar in add_argument() method of argparse module I'm unable to include characters after a right square bracket.
Trying to set something like this:
metavar="[host:database:collection:]field"
would raise an AssertionError, which includes:
File "/usr/lib64/python3.4/argparse.py", line 329, in _format_usage
assert ' '.join(opt_parts) == opt_usage
However, the following is accepted:
metavar="[host:database:collection:]field" |
|
Date |
User |
Action |
Args |
2015-09-10 16:30:03 | cortopy | set | recipients:
+ cortopy |
2015-09-10 16:30:03 | cortopy | set | messageid: <1441902603.18.0.552996969637.issue25058@psf.upfronthosting.co.za> |
2015-09-10 16:30:03 | cortopy | link | issue25058 messages |
2015-09-10 16:30:03 | cortopy | create | |
|