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

Update doctring for BoolishValueParser::new #5474

Merged
merged 1 commit into from Apr 23, 2024
Merged

Conversation

Will-Low
Copy link
Contributor

There seems to be an inconsistency between the docstring and the behavior of BoolishValueParser::new(). The docstring makes it seem as if a non-boolish value will default to true. This is not the case. Instead, an error occurs during parsing, which can be seen in the example code for BoolishValueParser.

Updating the docstring to align with current behavior.

@epage
Copy link
Member

epage commented Apr 23, 2024

Yeah, looks like this was copy/paste from Falsey

@epage epage merged commit 43efde9 into clap-rs:master Apr 23, 2024
21 of 22 checks passed
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 this pull request may close these issues.

None yet

2 participants