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

R. David Murray report at bugs.python.org
Sun May 28 15:14:19 EDT 2017


R. David Murray added the comment:

If I'm interpreted what the OP wrote correctly, he wanted the help text to not show that the option takes an argument, but instead rely on the help text to show that.  That works for the option text, but it doesn't work for the synopsis (the synopsis is just wrong in that case).

Probably a blank metavar should just be rejected because of the issue with they synopsis.  That should only be done in 3.7 if we do it, though.

Perhaps the OP will respond to explain the blank-metavar use case in more detail.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29626>
_______________________________________


More information about the Python-bugs-list mailing list