Message288644
I definitely agree with Reuben here -- I just ran into this issue while creating a "production quality" tool, and the help message produced by argparse with nargs='*' confused me too. It's pretty clear that this is a simple bug in argparse's production of that usage message: it says ARGUMENT is required, but it isn't.
However, the workaround of specifying an (unused) default is a reasonable workaround in the meantime -- thanks Paul. |
|
Date |
User |
Action |
Args |
2017-02-27 14:39:47 | benhoyt | set | recipients:
+ benhoyt, paul.j3, charlie.proctor, rrt |
2017-02-27 14:39:47 | benhoyt | set | messageid: <1488206387.49.0.240009390824.issue28609@psf.upfronthosting.co.za> |
2017-02-27 14:39:47 | benhoyt | link | issue28609 messages |
2017-02-27 14:39:47 | benhoyt | create | |
|