You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2015-06-06.15:22:59.767>labels= ['type-feature', 'library']
title='webbrowser.py update to use argparse.py'updated_at=<Date2019-03-15.22:00:55.953>user='https://bugs.python.org/HasanDiwan'
Just to confirm, getopt is still used in webbrowser as of the beginning of the Python 3.13 cycle. Replacing it with argparse would improve usability, reduce manual argument parsing code and avoid the use of a legacy module, per #105735
Activity
HasanDiwan commentedon Jun 6, 2015
The webbrowser module uses getopt, which needs to be ripped out and replaced with argparse. The attached file does just this.
berkerpeksag commentedon Jun 6, 2015
Thanks!
A few comments:
BreamoreBoy commentedon Jun 6, 2015
This strikes me as pointless code churn.
CAM-Gerlach commentedon Jun 13, 2023
Just to confirm,
getoptis still used inwebbrowseras of the beginning of the Python 3.13 cycle. Replacing it with argparse would improve usability, reduce manual argument parsing code and avoid the use of a legacy module, per #105735hugovk commentedon Mar 19, 2024
Please see PR #117047.
gh-68583: webbrowser: replace `getopt` with `argparse`, add long opti…
pythongh-68583: webbrowser: replace `getopt` with `argparse`, add lon…