Message288644
| Author |
benhoyt |
| Recipients |
benhoyt, charlie.proctor, paul.j3, rrt |
| Date |
2017年02月27日.14:39:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1488206387.49.0.240009390824.issue28609@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|