Sign in
android
/
platform
/
external
/
rust
/
crates
/
clap
/
6cdbbcc
/
.
/
3.2.23
/
examples
/
tutorial_derive
/
03_01_flag_bool.rs
blob: de677d8c6751249e966f17252517e8fcf5caa0c0 [
file
] [
log
] [
blame
]
use
clap
::
Parser
;
#[
derive
(
Parser
)]
#[
clap
(
author
,
version
,
about
,
long_about
=
None
)]
struct
Cli
{
#[
clap
(
short
,
long
,
action
)]
verbose
:
bool
,
}
fn
main
()
{
let
cli
=
Cli
::
parse
();
println
!(
"verbose: {:?}"
,
cli
.
verbose
);
}