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

Returning non-zero status in case of error in parameters #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

denilsonsa
Copy link

Knowing when something happened correctly and when an error occurred is important when using zopflipng in other scripts.

In special, if the help message is printed without passing -h or --help, it happened because of wrong or missing parameters, and should return a non-zero status. However, passing -h or --help will return 0.

Knowing when something happened correctly and when an error occurred is important when using zopflipng in other scripts.

In special, if the help message is printed without passing `-h` or `--help`, it happened because of wrong or missing parameters, and should return a non-zero status. However, passing `-h` or `--help` will return 0.
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

Successfully merging this pull request may close these issues.

1 participant