Author wolma
Recipients bethard, eric.araujo, htnieman, mZarjk, manveru, paul.j3, tshepang, vajrasky, wolma, xuanji, ysj.ray
Date 2014-10-28.23:16:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414538199.71.0.106668240454.issue11874@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-10-28 23:16:40wolmasetrecipients: + wolma, bethard, eric.araujo, ysj.ray, xuanji, tshepang, htnieman, manveru, paul.j3, vajrasky, mZarjk
2014-10-28 23:16:39wolmasetmessageid: <1414538199.71.0.106668240454.issue11874@psf.upfronthosting.co.za>
2014-10-28 23:16:39wolmalinkissue11874 messages
2014-10-28 23:16:39wolmacreate