ref cmd format
This commit is contained in:
@@ -14,16 +14,14 @@ pub struct CommandNewCliApp;
|
||||
|
||||
impl Command for CommandNewCliApp {
|
||||
|
||||
fn name(&self) -> &str { "newcliapp" }
|
||||
|
||||
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
||||
SubCommand::with_name(self.name()).about("New cli app")
|
||||
.arg(Arg::with_name("APP_NAME").required(true).index(1).help("App name"))
|
||||
.arg(Arg::with_name("verbose").long("verbose").short("V").help("Verbose"))
|
||||
}
|
||||
|
||||
fn name(&self) -> &str {
|
||||
"newcliapp"
|
||||
}
|
||||
|
||||
fn run(&self, _arg_matches: &ArgMatches, sub_arg_matches: &ArgMatches) -> CommandError {
|
||||
let is_verbose = sub_arg_matches.is_present("verbose");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user