mirror of
https://github.com/clap-rs/clap
synced 2025-01-07 10:18:48 +00:00
9bccded7ed
See #4261 for more details
571 B
571 B
$ 03_01_flag_bool_derive --help
A simple to use, efficient, and full-featured Command Line Argument Parser
Usage: 03_01_flag_bool_derive[EXE] [OPTIONS]
Options:
-v, --verbose
-h, --help Print help information
-V, --version Print version information
$ 03_01_flag_bool_derive
verbose: false
$ 03_01_flag_bool_derive --verbose
verbose: true
$ 03_01_flag_bool_derive --verbose --verbose
? failed
error: The argument '--verbose' cannot be used with '--verbose'
Usage: 03_01_flag_bool_derive[EXE] [OPTIONS]
For more information try '--help'