archive
/
md-pdf-rs
Archived
1
Fork 0

Add base build subcommand

This commit is contained in:
Jake Howard 2017-07-13 09:24:25 +01:00
parent 65a6c1b368
commit 9c86450a3f
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 6 additions and 1 deletions

View File

@ -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())
}