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

Add flags and better program parameters parser #7

Open
OrrMatzkin opened this issue Feb 18, 2023 · 0 comments
Open

Add flags and better program parameters parser #7

OrrMatzkin opened this issue Feb 18, 2023 · 0 comments

Comments

@OrrMatzkin
Copy link
Contributor

I have a suggestion regarding the program parameters.

The program has quite a lot of parameters (and I believe their amount will increase) that can be changed, some are mandatory and some are optional. The way the command line parameters are passed to the program is a bit confusing, I found myself forgetting the order of them and going back to the instruction often.

Luckily python has a solution called argparse, which makes it easy to write user-friendly command-line interfaces. Once defined what arguments are required, argparse will figure out how to parse those out of sys.argv and also automatically generates help and usage messages.

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