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

Use flags in command line input #11

Open
sl4ven opened this issue Sep 24, 2018 · 0 comments
Open

Use flags in command line input #11

sl4ven opened this issue Sep 24, 2018 · 0 comments

Comments

@sl4ven
Copy link
Contributor

sl4ven commented Sep 24, 2018

Rather than passing input arguments in prescribed number and order, we should encourage students to use command line flags to specify input. For example, instead of giving example for launching area computation program as

$ ./compute_area 10 20

we should provide example that takes input arguments like this:

$ ./compute_area --width 10 --length 20

This way allows students to specify defaults for all input variables, and to enter input argument in any order at the command line.

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