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
[src]
name and add -h/--help
fn short<'s: 'app>(self, short: &'s str) -> Self
[src]
fn sort_key(self, sort_key: &'app str) -> Self
[src]
Default is Cmd
's name
fn desc<'s: 'app>(self, desc: &'s str) -> Self
[src]
description
fn args(self, args: Args<'app>) -> Self
[src]
get argument
fn opt(self, opt: Opt<'app>) -> Self
[src]
add Opt
fn allow_zero_args(self, allow: bool) -> Self
[src]
default: true