diff options
author | Mario Krehl <mkrehl@science-computing.de> | 2016-09-07 10:37:16 +0200 |
---|---|---|
committer | Mario Krehl <mkrehl@science-computing.de> | 2016-09-07 10:37:16 +0200 |
commit | c828bed0e15cb7b545403c49a1c3b56c53f26488 (patch) | |
tree | 133e9a31d5154301615787ef739201917f3a60ff /bin | |
parent | 7023d1f2027b1402ca837efc626029e2cb1d687f (diff) |
Fix panic! when reaching unreachable!, because imag doesnt do anything without an argument or subcommand
Diffstat (limited to 'bin')
-rw-r--r-- | bin/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/src/main.rs b/bin/src/main.rs index de383068..b708b861 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -114,7 +114,7 @@ fn main() { let commands = get_commands(); let helptext = help_text(commands); let app = Runtime::get_default_cli_builder(appname, version, about) - .settings(&[AppSettings::AllowExternalSubcommands]) + .settings(&[AppSettings::AllowExternalSubcommands, AppSettings::ArgRequiredElseHelp]) .arg(Arg::with_name("version") .long("version") .takes_value(false) |