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 elypter, paul.j3
Date 2018-09-30.06:15:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538288141.67.0.545547206417.issue32552@psf.upfronthosting.co.za>
In-reply-to
Content
https://bugs.python.org/issue28742
argparse.ArgumentDefaultsHelpFormatter sometimes provides inaccurate documentation of defaults, so they should be overrideable

is asking for something similar - the ability to override the automatic `%(default)s` in certain cases.

The proposed fix is to look for a string that is already displaying a default, such as '(default:'.

    if '%(default)' not in action.help and '(default:' not in action.help:
History
Date User Action Args
2018-09-30 06:15:41paul.j3setrecipients: + paul.j3, elypter
2018-09-30 06:15:41paul.j3setmessageid: <1538288141.67.0.545547206417.issue32552@psf.upfronthosting.co.za>
2018-09-30 06:15:41paul.j3linkissue32552 messages
2018-09-30 06:15:41paul.j3create