Message325812
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. |
|
Date |
User |
Action |
Args |
2018-09-19 22:42:44 | paul.j3 | set | recipients:
+ paul.j3, helmsman helmsman |
2018-09-19 22:42:44 | paul.j3 | set | messageid: <1537396964.17.0.956365154283.issue34744@psf.upfronthosting.co.za> |
2018-09-19 22:42:44 | paul.j3 | link | issue34744 messages |
2018-09-19 22:42:44 | paul.j3 | create | |
|