-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
allowUnknownFlags: false
prevents aliases for help
and version
.
#216
Comments
// @bartaz |
I'm not familiar with the code but I was thinking something like parserOptions.help = {...parserOptions.help, type: 'boolean'};
// or
parserOptions.help ??= {type: 'boolean'}; |
@melusc Yes, in lines below instead of overriding Lines 150 to 159 in 0b07524
|
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
When setting
allowUnknownFlags
tofalse
it now overrides the options for thehelp
andversion
flags. As seen here https://github.com/sindresorhus/meow/pull/215/files#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R150-R160 and released inv10.1.4
.I have something like this to allow
-h
for--help
and-v
for--version
but now
-h
and-v
are treated as unknown flags.The text was updated successfully, but these errors were encountered: