aboutsummaryrefslogtreecommitdiffstats
path: root/mumctl
diff options
context:
space:
mode:
Diffstat (limited to 'mumctl')
-rw-r--r--mumctl/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs
index e4746d3..f2defc6 100644
--- a/mumctl/src/main.rs
+++ b/mumctl/src/main.rs
@@ -1,4 +1,4 @@
-use clap::{App, Arg, SubCommand};
+use clap::{App, AppSettings, Arg, SubCommand};
use ipc_channel::ipc::{self, IpcReceiver, IpcSender};
use log::*;
use mumlib::command::{Command, CommandResponse};
@@ -9,6 +9,7 @@ fn main() {
setup_logger();
let matches = App::new("mumctl")
+ .setting(AppSettings::ArgRequiredElseHelp)
.subcommand(SubCommand::with_name("server")
.subcommand(SubCommand::with_name("connect")
.arg(Arg::with_name("host")