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 aj, bethard, paul.j3
Date 2013-10-14.21:03:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381784640.11.0.341555714473.issue15613@psf.upfronthosting.co.za>
In-reply-to
Content
Looks like this behavior is intentional.  This subclass adds a '%(default)s' string to the help lines if:

    if '%(default)' not in action.help:
        if action.default is not SUPPRESS:
            defaulting_nargs = [OPTIONAL, ZERO_OR_MORE]
            if action.option_strings or action.nargs in defaulting_nargs:
                help += ' (default: %(default)s)'

So it adds the default if it is an `optional`, or a `positional` with '*' or '?'.  

A `default` value for a required positional (including '+') does not make sense, since the user input always overwrites the default.  

(I recommend closing this issue).
History
Date User Action Args
2013-10-14 21:04:00paul.j3setrecipients: + paul.j3, bethard, aj
2013-10-14 21:04:00paul.j3setmessageid: <1381784640.11.0.341555714473.issue15613@psf.upfronthosting.co.za>
2013-10-14 21:04:00paul.j3linkissue15613 messages
2013-10-14 21:03:59paul.j3create