This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients akvadrako, bethard, chris.jerdonek, danielsh, paul.j3
Date 2018-02-14.19:39:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518637190.5.0.467229070634.issue17050@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-02-14 19:39:50paul.j3setrecipients: + paul.j3, bethard, chris.jerdonek, danielsh, akvadrako
2018-02-14 19:39:50paul.j3setmessageid: <1518637190.5.0.467229070634.issue17050@psf.upfronthosting.co.za>
2018-02-14 19:39:50paul.j3linkissue17050 messages
2018-02-14 19:39:50paul.j3create