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 andersk
Recipients andersk, bethard, davidben, drm, eric.araujo, eric.smith, gdb, nelhage, r.david.murray
Date 2011-02-07.02:08:36
SpamBayes Score 9.362894e-11
Marked as misclassified No
Message-id <1297044517.2.0.512764070547.issue9334@psf.upfronthosting.co.za>
In-reply-to
Content
> (1) It's only deprecated in the documentation

Which is why I suggested un-deprecating it in the documentation.  (I want to avoid encouraging programmers to switch away from optparse until this bug is fixed.)

> # proposed behavior
> parser = ArgumentParser(error_on_unknown_options=False)

Perhaps you weren’t literally proposing “error_on_unknown_options=False” as the name of the new flag, but note that neither the current nor proposed behaviors have nothing to do with whether arguments look like known or unknown options.  Under the proposed behavior, anything in argument position (--asciidoc-opts ___) is parsed as an argument, no matter what it looks like.

So a more accurate name might be “refuse_dashed_args=False”, or more generally (in case prefix_chars != '-'), “refuse_prefixed_args=False”?
History
Date User Action Args
2011-02-07 02:08:37andersksetrecipients: + andersk, bethard, eric.smith, eric.araujo, r.david.murray, gdb, nelhage, drm, davidben
2011-02-07 02:08:37andersksetmessageid: <1297044517.2.0.512764070547.issue9334@psf.upfronthosting.co.za>
2011-02-07 02:08:36andersklinkissue9334 messages
2011-02-07 02:08:36anderskcreate