summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-08-26 16:35:15 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-09-05 16:18:11 +0200
commit58b2597bcb0596a7e8531908c71c127eab2ce482 (patch)
treeab8e8cc8bbdd36071758e16dbfd301e0f3db44e5 /bin
parent58fd2dbfe44f6213b3b9f13dd78063b1cbd0f78e (diff)
Enable forwarding of args and subcommands
Diffstat (limited to 'bin')
-rw-r--r--bin/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/src/main.rs b/bin/src/main.rs
index 7a2f3d0e..a17c0801 100644
--- a/bin/src/main.rs
+++ b/bin/src/main.rs
@@ -13,7 +13,7 @@ use std::io::ErrorKind;
use walkdir::WalkDir;
use crossbeam::*;
-use clap::{Arg, SubCommand};
+use clap::{Arg, AppSettings, SubCommand};
use libimagrt::runtime::Runtime;
@@ -129,6 +129,8 @@ fn main() {
.required(false)
.multiple(false)
.help("Show help"))
+ .subcommand(SubCommand::with_name("help").help("Show help"))
+ .settings(&[AppSettings::AllowExternalSubcommands])
.get_matches();
if matches.is_present("help") {