Author Sam.Kerr
Recipients Sam.Kerr
Date 2014-07-23.16:03:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406131424.14.0.0235697032218.issue22047@psf.upfronthosting.co.za>
In-reply-to
Content
The following code:

   import argparse
   parser = argparse.ArgumentParser()
   group1 = parser.add_mutually_exclusive_group()
   group2 = group1.add_mutually_exclusive_group()
   group2.add_argument('-hello',action='store_true', help="A flag")
   args = parser.parse_args()

produces this output:

   skerr@gravel:~$ python bug.py -h
   usage: bug.py [-h] [[-hello]

   optional arguments:
        -h, --help  show this help message and exit
        -hello      A flag
   skerr@gravel:~$ 

Note the double [[ around hello, but there is no double ]] to close it. This is the error.
History
Date User Action Args
2014-07-23 16:03:44Sam.Kerrsetrecipients: + Sam.Kerr
2014-07-23 16:03:44Sam.Kerrsetmessageid: <1406131424.14.0.0235697032218.issue22047@psf.upfronthosting.co.za>
2014-07-23 16:03:44Sam.Kerrlinkissue22047 messages
2014-07-23 16:03:44Sam.Kerrcreate