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

Consider using argparse in the various scripts #3

Open
devos50 opened this issue May 10, 2023 · 0 comments
Open

Consider using argparse in the various scripts #3

devos50 opened this issue May 10, 2023 · 0 comments

Comments

@devos50
Copy link

devos50 commented May 10, 2023

The built-in argparse library is able to replace a lot of code in various Python scripts, such as generate_graph.py. It would also print a prettier message compared to the following:

mdevos@IC-ITs-MacBook-Pro-2 decentralizepy % python generate_graph.py       
Traceback (most recent call last):
  File "/Users/mdevos/Documents/decentralizepy/generate_graph.py", line 40, in <module>
    assert len(sys.argv) >= 2, __doc__
AssertionError: Usage: python3 generate_graph.py -g <graph_type> -n <num_nodes> -s <seed> -d <degree> -k <k_over_2> -b <beta> -f <file_name> -a -h
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