[issue29626] Issue with spacing in argparse module while using help

2017-02-27 Thread Falguniben Jhaveri
Falguniben Jhaveri added the comment: There is an extra spacing here if you look carefully. I have commented above the code. Similarly it happens for "-o" too but not for other alphabets. 1427:~/mypy/argdev$ python3 issue29626.py delete -h usage: cli delete [-h] [-p] userid Dele

[issue29626] Issue with spacing in argparse module while using help

2017-02-27 Thread Falguniben Jhaveri
Falguniben Jhaveri added the comment: Sample code to repro this: import argparse parser = argparse.ArgumentParser(prog='cli') subparsers = parser.add_subparsers(dest="command") subparsers_user_delete = subparsers.add_parser("delete", help="Deletes a

[issue29626] Issue with spacing in argparse module while using help

2017-02-22 Thread Falguniben Jhaveri
New submission from Falguniben Jhaveri: When I use argparse the optional arguments with character "-p" and "-s" has improper spacing while using help/usage command. Sample out put from argparse module: usage: cli node list [-h] [-p] [-o] Lists nodes in your curren