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
1 changed files with 3 additions and 0 deletions

View File

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