This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients falu2010, paul.j3
Date 2017-02-27.21:57:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488232635.85.0.175521350937.issue29626@psf.upfronthosting.co.za>
In-reply-to
Content
With this setup

import argparse
parser=argparse.ArgumentParser(prog='cli')
parser.add_argument('nodes')
sp=parser.add_subparsers()
p1 = sp.add_parser('list', description='Lists nodes in your current project')
p1.add_argument('-p','--projectid', action='store_true')
p1.add_argument('-o', '--org', action='store_true', help=' (For administrators only) Lists all the nodes in')
parser.parse_args()


this help looks normal

1354:~/mypy/argdev$ python3 issue29626.py nodes list -h
usage: cli nodes list [-h] [-p] [-o]

Lists nodes in your current project

optional arguments:
  -h, --help       show this help message and exit
  -p, --projectid
  -o, --org        (For administrators only) Lists all the nodes in

Without further feedback this issue should be closed
History
Date User Action Args
2017-02-27 21:57:15paul.j3setrecipients: + paul.j3, falu2010
2017-02-27 21:57:15paul.j3setmessageid: <1488232635.85.0.175521350937.issue29626@psf.upfronthosting.co.za>
2017-02-27 21:57:15paul.j3linkissue29626 messages
2017-02-27 21:57:15paul.j3create