Enable forwarding of args and subcommands

This commit is contained in:
Matthias Beyer 2016-08-26 16:35:15 +02:00
parent 58fd2dbfe4
commit 58b2597bcb

View file

@ -13,7 +13,7 @@ use std::io::ErrorKind;
use walkdir::WalkDir; use walkdir::WalkDir;
use crossbeam::*; use crossbeam::*;
use clap::{Arg, SubCommand}; use clap::{Arg, AppSettings, SubCommand};
use libimagrt::runtime::Runtime; use libimagrt::runtime::Runtime;
@ -129,6 +129,8 @@ fn main() {
.required(false) .required(false)
.multiple(false) .multiple(false)
.help("Show help")) .help("Show help"))
.subcommand(SubCommand::with_name("help").help("Show help"))
.settings(&[AppSettings::AllowExternalSubcommands])
.get_matches(); .get_matches();
if matches.is_present("help") { if matches.is_present("help") {