Message312179
This is another expression of the bigger problem of handling arguments that look like flags. In optparse the 'nargs' (or equivalent, it doesn't handle positionals), control how many arguments an Option takes, regardless of their form. In argparse, the distinction between a option (flag) and argument has priority. So it is difficult to treat strings like '--def' as a plain argument. The default behavior is to treat it as an optional flag.
https://bugs.python.org/issue9334 |
|
Date |
User |
Action |
Args |
2018-02-14 19:39:50 | paul.j3 | set | recipients:
+ paul.j3, bethard, chris.jerdonek, danielsh, akvadrako |
2018-02-14 19:39:50 | paul.j3 | set | messageid: <1518637190.5.0.467229070634.issue17050@psf.upfronthosting.co.za> |
2018-02-14 19:39:50 | paul.j3 | link | issue17050 messages |
2018-02-14 19:39:50 | paul.j3 | create | |
|