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 helmsman helmsman, paul.j3
Date 2018-09-19.22:42:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537396964.17.0.956365154283.issue34744@psf.upfronthosting.co.za>
In-reply-to
Content
In your example, what is 'flag'?  There's no Action attribute of that name.  There is a 'dest' and a 'option_strings' list.

All the 'help' '%(...)s' does is display one of the Action object attributes, the most common one is 'default'.

Try this:

    a = parser.add_argument(...)
    print(vars(a))

to see all the attributes of such an object.
History
Date User Action Args
2018-09-19 22:42:44paul.j3setrecipients: + paul.j3, helmsman helmsman
2018-09-19 22:42:44paul.j3setmessageid: <1537396964.17.0.956365154283.issue34744@psf.upfronthosting.co.za>
2018-09-19 22:42:44paul.j3linkissue34744 messages
2018-09-19 22:42:44paul.j3create