Issue 16678: optparse: parse only known options (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/60882

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:39 admin set github: 60882
2012-12-14 20:48:12 r.david.murray set status: open -> closedresolution: out of datestage: resolved
2012-12-14 20:19:14 asvetlov set nosy: + asvetlovmessages: +
2012-12-14 20:04:33 eric.araujo set nosy: + eric.araujomessages: +
2012-12-14 14:11:37 r.david.murray set nosy: + r.david.murraymessages: +
2012-12-14 08:28:24 techtonik set messages: +
2012-12-14 08:27:43 techtonik set files: + pass_through.py
2012-12-14 08:27:36 techtonik create