From aeab5a3e682661e14b7683c0f3e6dbf482f7bb73 Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Thu, 25 Feb 2016 08:05:06 +0100 Subject: 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... --- cli/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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 { -- cgit v1.2.3