From 9c86450a3f320006274877376e295b84824f21e8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 13 Jul 2017 09:24:25 +0100 Subject: [PATCH] Add base build subcommand --- src/args.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/args.rs b/src/args.rs index 21104fe..2c7e929 100644 --- a/src/args.rs +++ b/src/args.rs @@ -1,8 +1,11 @@ -use clap::{App, AppSettings, ArgMatches, Arg}; +use clap::{App, AppSettings, ArgMatches, Arg, SubCommand}; #[cfg(test)] use clap::Result; +fn get_build_command() -> App<'static, 'static> { + return SubCommand::with_name("build") +} fn build() -> App<'static, 'static> { return App::new(crate_name!()) @@ -21,6 +24,8 @@ fn build() -> App<'static, 'static> { .help("Show verbose output") .multiple(true) ) + .subcommand(get_build_command()) + }