mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
Update README.md
This commit is contained in:
parent
7a6c606e9e
commit
3c30c41643
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -38,8 +38,8 @@ fn main() {
|
||||||
.subcommand(SubCommand::new("test")
|
.subcommand(SubCommand::new("test")
|
||||||
.about("controls testing features")
|
.about("controls testing features")
|
||||||
.arg(Arg::new("verbose")
|
.arg(Arg::new("verbose")
|
||||||
.short("v")
|
.short("v")
|
||||||
.help("print test information verbosely")))
|
.help("print test information verbosely")))
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
if let Some(o) = matches.value_of("output") {
|
if let Some(o) = matches.value_of("output") {
|
||||||
|
@ -58,10 +58,10 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(ref matches) = matches.subcommand_matches("test") {
|
if let Some(ref matches) = matches.subcommand_matches("test") {
|
||||||
if matches.is_present("list") {
|
if matches.is_present("verbose") {
|
||||||
println!("Printing testing lists...");
|
println!("Printing verbosely...");
|
||||||
} else {
|
} else {
|
||||||
println!("Not printing testing lists...");
|
println!("Printing normally...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue