diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-08-06 11:54:20 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-08-06 11:54:20 +0200 |
commit | 2da3eadc1cefd5b7c30c171979568bb74c2f6f8f (patch) | |
tree | 368271d83ccb57e64583067eebb133b4522e3523 /imag-todo | |
parent | f915a7fa269e70a87d39db1912b3b5d53b541e7f (diff) |
Do not panic if there was no command passed
Diffstat (limited to 'imag-todo')
-rw-r--r-- | imag-todo/src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/imag-todo/src/main.rs b/imag-todo/src/main.rs index 859e7579..446b3e7c 100644 --- a/imag-todo/src/main.rs +++ b/imag-todo/src/main.rs @@ -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 |