mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
b190a6a817
This reduces the need for us to have `clap` as a dependency in `clap_derive`, preparing the way to fix #15.
10 lines
422 B
Text
10 lines
422 B
Text
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
|
|
|
|
--> $DIR/positional_bool.rs:5:14
|
|
|
|
|
5 | verbose: bool,
|
|
| ^^^^
|