Closed melusc closed 1 year ago
// @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 help
and version
the options passed as argument should be used if available:
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.