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

Adding --must-exist command line option #171

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

Conversation

jtyr
Copy link

@jtyr jtyr commented Sep 30, 2021

This PR is adding --must-exist command line option that allows to exit the execution with an error if the PATH doesn't exist. Without this option, the execution seems to be successful which might be a problem if we want to validate schema of a particular file/directory and the file/directory doesn't exist.

@mildebrandt
Copy link

I think this should be the default behavior, but someone is probably depending on it. This solution seems fine, and I'd like to make it the default in the next major release. Please add tests, thanks!

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.

2 participants