Message230187
It doesn't seem to be the exact same problem, but still this very simple example with parentheses in metavar fails to format correctly:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("inputfiles", metavar = 'input_file(s)', nargs = "+", help = 'one or more input files')
args = parser.parse_args()
-->
usage: -m [-h] input_files) [input_file(s ...]
positional arguments:
input_file(s) one or more input files
optional arguments:
-h, --help show this help message and exit
with the two occurences of input_file(s) being formatted wrong, but differently. |
|
Date |
User |
Action |
Args |
2014-10-28 23:16:40 | wolma | set | recipients:
+ wolma, bethard, eric.araujo, ysj.ray, xuanji, tshepang, htnieman, manveru, paul.j3, vajrasky, mZarjk |
2014-10-28 23:16:39 | wolma | set | messageid: <1414538199.71.0.106668240454.issue11874@psf.upfronthosting.co.za> |
2014-10-28 23:16:39 | wolma | link | issue11874 messages |
2014-10-28 23:16:39 | wolma | create | |
|