Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Deprecated optparse with argparse for Command-Line Parsing #142

Open
yy214123 opened this issue Dec 30, 2024 · 5 comments
Open

Replace Deprecated optparse with argparse for Command-Line Parsing #142

yy214123 opened this issue Dec 30, 2024 · 5 comments

Comments

@yy214123
Copy link

The current implementation of pyfiglet utilizes the optparse module for parsing command-line arguments.
However, optparse has been deprecated since Python 3.2 in favor of the more powerful and flexible argparse module.

Proposed Changes:
Switch to argparse: Replace all instances of optparse with argparse to handle command-line arguments.

@pwaller
Copy link
Owner

pwaller commented Dec 30, 2024

If someone wants to contribute this, pull requests are welcome.

@yy214123
Copy link
Author

Thank you for the positive response!
I will proceed to create a Pull Request to replace optparse with argparse.

@pwaller
Copy link
Owner

pwaller commented Dec 30, 2024

Thanks; bear in mind I may be slow to respond since I'll have a lot going on. If it turns out to be non-trivial to review the requests it may take some time. Please feel free to ping the thread every so often if I go silent.

@stefanor
Copy link
Collaborator

FYI, optparse got undeprecated: python/cpython#126227

@yy214123
Copy link
Author

FYI, optparse got undeprecated: python/cpython#126227

Thank you for sharing the information. I didn't notice this news.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants