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

--help/-h should ignore the need for -w #22

Open
AndyProk opened this issue Sep 1, 2016 · 0 comments
Open

--help/-h should ignore the need for -w #22

AndyProk opened this issue Sep 1, 2016 · 0 comments

Comments

@AndyProk
Copy link

AndyProk commented Sep 1, 2016

When civs is run without arguments, it complains that

Error: World to be used not specified (option -w missing)

Use -h for help
Exit.

Fair enough.
The same message is produced, however, if civs is run with "-h" or "--help". Checks for option flags that will always cause a program to abort after printing out fixed information on the program (like "--help"/"-h", "--version", etc.) should always be made before checks which ensure that all necessary arguments for a normal run have been given.
Since you're also the author of civs-browser, I won't repeat this there but just mention here that that project has the same problem.

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