Skip to content

Replace getopt with a friendlier command-line parser #5

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

Open
bhrutledge opened this issue Jun 19, 2021 · 0 comments
Open

Replace getopt with a friendlier command-line parser #5

bhrutledge opened this issue Jun 19, 2021 · 0 comments

Comments

@bhrutledge
Copy link
Contributor

As noted in the getopt docs:

Users who are unfamiliar with the C getopt() function or who would like to write less code and get better help and error messages should consider using the argparse module instead.

argparse is the best practice for handling command-line options with the Python standard library.

There's also Click, a popular third-party package.

@bhrutledge bhrutledge changed the title Replace getopt with a friendlier command-line parser Replace getopt with a friendlier command-line parser Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant