Struct app::Cmd
[−]
[src]
pub struct Cmd<'app> { /* fields omitted */ }
Command
Methods
impl<'app> Cmd<'app>
[src]
fn new<'s: 'app>(name: &'s str) -> Self
name
fn desc<'s: 'app>(self, desc: &'s str) -> Self
description
fn args<'s: 'app, V>(self, name: &'app str, value: V) -> Self where
V: ArgsValueParse<'app>,
V: ArgsValueParse<'app>,
get arguments
fn args_optional(self) -> Self
set the Cmd
s args_optional
as true
(default is false
),
App
will will not check it's Args and create help message with tag of optional
if it is true
.
fn args_help<'s: 'app>(self, help: &'s str) -> Self
arguments's help message
fn opt(self, opt: Opt<'app>) -> Self
add Opt