Message128094
> (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”? |
|
Date |
User |
Action |
Args |
2011-02-07 02:08:37 | andersk | set | recipients:
+ andersk, bethard, eric.smith, eric.araujo, r.david.murray, gdb, nelhage, drm, davidben |
2011-02-07 02:08:37 | andersk | set | messageid: <1297044517.2.0.512764070547.issue9334@psf.upfronthosting.co.za> |
2011-02-07 02:08:36 | andersk | link | issue9334 messages |
2011-02-07 02:08:36 | andersk | create | |
|