aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorTill Höppner2016-02-25 08:05:06 +0100
committerTill Höppner2016-02-25 08:05:06 +0100
commitaeab5a3e682661e14b7683c0f3e6dbf482f7bb73 (patch)
treeeb259df5176571b233a130265d725aa6e04c0235 /cli
parent58fdc5c7566323427d62754b8c1fd4b7b30a92e6 (diff)
downloadilc-aeab5a3e682661e14b7683c0f3e6dbf482f7bb73.tar.gz
ilc-aeab5a3e682661e14b7683c0f3e6dbf482f7bb73.tar.xz
ilc-aeab5a3e682661e14b7683c0f3e6dbf482f7bb73.zip
Add "no command specified" special case message
Yeah, I just forgot how to use my own program. Or maybe I'm just tired. I should sleep...
Diffstat (limited to 'cli')
-rw-r--r--cli/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/lib.rs b/cli/src/lib.rs
index f49150a..0f91b89 100644
--- a/cli/src/lib.rs
+++ b/cli/src/lib.rs
@@ -178,7 +178,7 @@ pub fn main() {
&*e.encoder())
}
(sc, _) if !sc.is_empty() => panic!("Unimplemented subcommand `{}`, this is a bug", sc),
- _ => Ok(()),
+ _ => die("No command specified"),
};
match res {