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

Allow --version and --help to be used even when missing a maskfile #23

Merged
merged 5 commits into from
Jul 26, 2019

Conversation

jacobdeichert
Copy link
Owner

Describe the solution

When missing a maskfile.md, the process exited with an error which prevented --version, -V and --help, -h from being useful in other directories.

Also when a subcommand is missing, mask now properly exits with an error message and status code 1.

How to test

  • Added unit tests
  • Added integration tests

Types of changes

Technically a breaking change because mask now exits for a missing subcommand.

  • Bug fix
  • New feature
  • Breaking change

Before, mask was exiting immediately if no maskfile was found. This prevented --version and --help from working unfortuantely.

Now mask will try to parse for --help or --version and not show an exit error. This also means it may not be immediately obvious that you are missing a maskfile.
@jacobdeichert jacobdeichert changed the title Prevent error when missing maskfile Allow --version and --help to be used even when missing a maskfile Jul 26, 2019
@jacobdeichert jacobdeichert merged commit 50f298e into master Jul 26, 2019
@jacobdeichert jacobdeichert deleted the prevent-error-when-missing-maskfile branch April 4, 2020 15:26
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