mirror of
https://github.com/clap-rs/clap
synced 2025-01-24 10:24:59 +00:00
24 lines
417 B
Markdown
24 lines
417 B
Markdown
|
```console
|
||
|
$ 03_01_flag_count --help
|
||
|
clap [..]
|
||
|
A simple to use, efficient, and full-featured Command Line Argument Parser
|
||
|
|
||
|
USAGE:
|
||
|
03_01_flag_count[EXE] [OPTIONS]
|
||
|
|
||
|
OPTIONS:
|
||
|
-h, --help Print help information
|
||
|
-v, --verbose
|
||
|
-V, --version Print version information
|
||
|
|
||
|
$ 03_01_flag_count
|
||
|
verbose: 0
|
||
|
|
||
|
$ 03_01_flag_count --verbose
|
||
|
verbose: 1
|
||
|
|
||
|
$ 03_01_flag_count --verbose --verbose
|
||
|
verbose: 2
|
||
|
|
||
|
```
|