File: positional_bool.stderr

package info (click to toggle)
rust-structopt 0.3.26-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 796 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
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/TeXitoi/structopt/tree/master/examples/true_or_false.rs

 --> $DIR/positional_bool.rs:5:14
  |
5 |     verbose: bool,
  |              ^^^^