-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Labels
Description
Describe the bug
The allowNo option on BooleanFlag doesn't match against aliases.
To Reproduce
Create a BooleanFlag with an alias and allowNo enabled.
gitTag: Flags.boolean({
aliases: ["git-tag"],
allowNo: true,
description: "Create a git tag when publishing the package.",
}),Try to invoke the command with the no prefix and one of the aliases:
mycli publish --no-git-tagAnd you'll get the nonexistent flag error:
Nonexistent flag: --no-git-tag
See more help with --helpExpected behavior
Flag aliases should be usable with the no prefix.
Environment (please complete the following information):
- OS & version: Windows 10
- Shell/terminal & version: Windows Terminal w/ powershell
Reactions are currently unavailable