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.

classification
Title: optparse: parse only known options
Type: Stage: resolved
Components: Documentation Versions: Python 2.7, Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: docs@python Nosy List: asvetlov, docs@python, eric.araujo, r.david.murray, techtonik
Priority: normal Keywords:

Created on 2012-12-14 08:27 by techtonik, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pass_through.py techtonik, 2012-12-14 08:27
Messages (5)
msg177447 - (view) Author: anatoly techtonik (techtonik) Date: 2012-12-14 08:27
This following recipe from Optik examples should be added to documentation. It is extremely helpful when porting to optparse from getopt or other option parsing schemes.
msg177448 - (view) Author: anatoly techtonik (techtonik) Date: 2012-12-14 08:28
It allows to port options to and from optparse incrementally.
msg177460 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-12-14 14:11
We aren't encouraging people to use optparse any more.  The recipe isn't needed in argparse, as that has a "parse_known_args" method that achieves the same end.
msg177498 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-12-14 20:04
I agree with David and suggest closing this as outdated.  Thanks for the suggestion nonetheless.
msg177504 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2012-12-14 20:19
+1 for closing as "won't fix"
History
Date User Action Args
2022-04-11 14:57:39adminsetgithub: 60882
2012-12-14 20:48:12r.david.murraysetstatus: open -> closed
resolution: out of date
stage: resolved
2012-12-14 20:19:14asvetlovsetnosy: + asvetlov
messages: + msg177504
2012-12-14 20:04:33eric.araujosetnosy: + eric.araujo
messages: + msg177498
2012-12-14 14:11:37r.david.murraysetnosy: + r.david.murray
messages: + msg177460
2012-12-14 08:28:24techtoniksetmessages: + msg177448
2012-12-14 08:27:43techtoniksetfiles: + pass_through.py
2012-12-14 08:27:36techtonikcreate