From 58b2597bcb0596a7e8531908c71c127eab2ce482 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 26 Aug 2016 16:35:15 +0200 Subject: [PATCH] Enable forwarding of args and subcommands --- bin/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") {