mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
24 lines
422 B
Markdown
24 lines
422 B
Markdown
|
```console
|
||
|
$ 03_01_flag_bool --help
|
||
|
clap [..]
|
||
|
A simple to use, efficient, and full-featured Command Line Argument Parser
|
||
|
|
||
|
USAGE:
|
||
|
03_01_flag_bool[EXE] [OPTIONS]
|
||
|
|
||
|
OPTIONS:
|
||
|
-h, --help Print help information
|
||
|
-v, --verbose
|
||
|
-V, --version Print version information
|
||
|
|
||
|
$ 03_01_flag_bool
|
||
|
verbose: false
|
||
|
|
||
|
$ 03_01_flag_bool --verbose
|
||
|
verbose: true
|
||
|
|
||
|
$ 03_01_flag_bool --verbose --verbose
|
||
|
verbose: true
|
||
|
|
||
|
```
|