Do not panic if there was no command passed
This commit is contained in:
parent
f915a7fa26
commit
2da3eadc1c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue