Message288674
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 |
|
Date |
User |
Action |
Args |
2017-02-27 21:57:15 | paul.j3 | set | recipients:
+ paul.j3, falu2010 |
2017-02-27 21:57:15 | paul.j3 | set | messageid: <1488232635.85.0.175521350937.issue29626@psf.upfronthosting.co.za> |
2017-02-27 21:57:15 | paul.j3 | link | issue29626 messages |
2017-02-27 21:57:15 | paul.j3 | create | |
|