docs(examples): Don't crash when subcommand isn't provided

This commit is contained in:
Ed Page 2021-11-11 19:04:26 -06:00
parent 0a4a2dd36b
commit 74d41b6f52

View file

@ -29,6 +29,7 @@ fn main() {
match matches.subcommand_name() {
Some("test") => println!("The 'test' subcommand was used"),
None => {}
_ => unreachable!(),
}
}