paul j3 <[email protected]> added the comment:
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.
----------
nosy: +paul.j3
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34744>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com