Skip to content
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

Add error when flag.default isn't a valid choice #231

Merged

Conversation

tommy-mitchell
Copy link
Contributor

meow({
	flags: {
		number: {
			type: 'number',
			choices: [1, 2, 3],
			default: 1,
		},
	},
});
//=> Throws 'Each value of the option `default` must exist within the option `choices`. Invalid flags: `--number`'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants