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

when does not support flags with false values #556

Closed
MichaelGoberling opened this issue Nov 16, 2022 · 0 comments · Fixed by #557
Closed

when does not support flags with false values #556

MichaelGoberling opened this issue Nov 16, 2022 · 0 comments · Fixed by #557

Comments

@MichaelGoberling
Copy link
Contributor

Behavior

Flags config

watermelon: Flags.boolean({ allowNo: true }),
apple: Flags.string({ exclusive: [{ name: 'watermelon', when: async (flags) => flags.watermelon === false }] })

Execution

cmd --no-watermelon --apple
[executes]

Expected Behavior

> cmd --no-watermelon --apple
The following error occurred:
  --watermelon=false cannot also be provided when using --apple
See more help with --help
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 a pull request may close this issue.

1 participant