Do not panic if there was no command passed

This commit is contained in:
Matthias Beyer 2016-08-06 11:54:20 +02:00
parent f915a7fa26
commit 2da3eadc1c

View file

@ -39,6 +39,9 @@ fn main() {
match rt.cli().subcommand_name() { match rt.cli().subcommand_name() {
Some("tw-hook") => tw_hook(&rt), Some("tw-hook") => tw_hook(&rt),
Some("list") => list(&rt), Some("list") => list(&rt),
None => {
warn!("No command");
},
_ => unreachable!(), _ => unreachable!(),
} // end match scmd } // end match scmd
} // end main } // end main