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

Fix autoHelp and autoVersion with allowUnknownFlags set to false #215

Conversation

bartaz
Copy link
Contributor

@bartaz bartaz commented Sep 27, 2022

Fixes #197

--help and --version are now treated as known flags if autoHelp or autoVersion are set to true.

Drive-by: fix a typo in test file name.

@sindresorhus sindresorhus merged commit 25a0903 into sindresorhus:main Sep 27, 2022
@sindresorhus
Copy link
Owner

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.

--help and --version should work with allowUnknownFlags: false
2 participants