mirror of
https://github.com/clap-rs/clap
synced 2024-09-21 14:52:00 +00:00
docs(examples): Provide visual indication of user choice
This commit is contained in:
parent
74d41b6f52
commit
7c24e937f8
1 changed files with 2 additions and 2 deletions
|
@ -24,10 +24,10 @@ fn main() {
|
|||
// Note, it's safe to call unwrap() because the arg is required
|
||||
match matches.value_of("MODE").unwrap() {
|
||||
"fast" => {
|
||||
// Do fast things...
|
||||
println!("Hare");
|
||||
}
|
||||
"slow" => {
|
||||
// Do slow things...
|
||||
println!("Tortoise");
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue