Debian Codegraph @

third_party/rust/clap/examples/tutorial_builder/03_01_flag_bool.md

raw
1 ```console
2 $ 03_01_flag_bool --help
3 A simple to use, efficient, and full-featured Command Line Argument Parser
4
5 Usage: 03_01_flag_bool[EXE] [OPTIONS]
6
7 Options:
8 -v, --verbose
9 -h, --help Print help
10 -V, --version Print version
11
12 $ 03_01_flag_bool
13 verbose: false
14
15 $ 03_01_flag_bool --verbose
16 verbose: true
17
18 $ 03_01_flag_bool --verbose --verbose
19 ? failed
20 error: the argument '--verbose' cannot be used multiple times
21
22 Usage: 03_01_flag_bool[EXE] [OPTIONS]
23
24 For more information, try '--help'.
25
26 ```