Enable forwarding of args and subcommands
This commit is contained in:
parent
58fd2dbfe4
commit
58b2597bcb
1 changed files with 3 additions and 1 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue