mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +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")
|
||||
.about("controls testing features")
|
||||
.arg(Arg::new("verbose")
|
||||
.short("v")
|
||||
.help("print test information verbosely")))
|
||||
.short("v")
|
||||
.help("print test information verbosely")))
|
||||
.get_matches();
|
||||
|
||||
if let Some(o) = matches.value_of("output") {
|
||||
|
@ -58,10 +58,10 @@ fn main() {
|
|||
}
|
||||
|
||||
if let Some(ref matches) = matches.subcommand_matches("test") {
|
||||
if matches.is_present("list") {
|
||||
println!("Printing testing lists...");
|
||||
if matches.is_present("verbose") {
|
||||
println!("Printing verbosely...");
|
||||
} else {
|
||||
println!("Not printing testing lists...");
|
||||
println!("Printing normally...");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue