Merge pull request #3375 from rfdonnelly/fix-bool-parsing-link

Update link to explicit bool parser example
This commit is contained in:
Ed Page 2022-02-01 06:58:24 -06:00 committed by GitHub
commit 7f812618a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -317,7 +317,7 @@ impl Attrs {
help = "if you want to create a flag add `long` or `short`";
help = "If you really want a boolean parameter \
add an explicit parser, for example `parse(try_from_str)`";
note = "see also https://github.com/clap-rs/clap_derive/tree/master/examples/true_or_false.rs";
note = "see also https://github.com/clap-rs/clap/blob/master/examples/derive_ref/custom-bool.md";
)
}
if res.is_enum {

View file

@ -2,7 +2,7 @@ error: `bool` cannot be used as positional parameter with default parser
= help: if you want to create a flag add `long` or `short`
= help: If you really want a boolean parameter add an explicit parser, for example `parse(try_from_str)`
= note: see also https://github.com/clap-rs/clap_derive/tree/master/examples/true_or_false.rs
= note: see also https://github.com/clap-rs/clap/blob/master/examples/derive_ref/custom-bool.md
--> $DIR/positional_bool.rs:5:14
|