-
Notifications
You must be signed in to change notification settings - Fork 69
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
deprecated
property does not work when =
is used to provide value
#586
Comments
mdonnalley
changed the title
Jan 10, 2023
warnIfFlagDeprecated
property does not work when =
is used to provide valuedeprecated
property does not work when =
is used to provide value
@mdonnalley does that make it clearer?:
|
@mdonnalley this replacement might work: // const foundAliases = this.argv.filter(a => aliases.includes(a));
const foundAliases = aliases.filter(alias => this.argv.some(a => a.startsWith(alias))) |
@jayree Thanks - looks like the issue is with the And your fix works - thank you for the suggestion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If
deprecated
is set totrue
for a flag and the user provides the value using=
, e.g.my-flag=value
, the deprecation warning will not be emitted.The text was updated successfully, but these errors were encountered: