mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
Merge pull request #3375 from rfdonnelly/fix-bool-parsing-link
Update link to explicit bool parser example
This commit is contained in:
commit
7f812618a6
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
||||
|
|
Loading…
Reference in a new issue