mirror of
https://github.com/clap-rs/clap
synced 2025-01-05 17:28:42 +00:00
16 lines
733 B
Text
16 lines
733 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,
|
|
| ^^^^
|
|
|
|
error[E0277]: the trait bound `Opt: std::convert::From<clap::parse::matches::arg_matches::ArgMatches>` is not satisfied
|
|
--> $DIR/positional_bool.rs:3:10
|
|
|
|
|
3 | #[derive(Clap, Debug)]
|
|
| ^^^^ the trait `std::convert::From<clap::parse::matches::arg_matches::ArgMatches>` is not implemented for `Opt`
|