Struct subcmd::CmdWrapper
[−]
[src]
pub struct CmdWrapper { /* fields omitted */ }
This wrapper hold a command object and a arguments vectors.
Methods
impl CmdWrapper
[src]
fn new(cmd: Box<Command>, args: Vec<String>) -> CmdWrapper
Create a new wrapper
fn name<'a>(&self) -> &'a str
Get the name of the wrapped command
fn help<'a>(&self) -> &'a str
Get a string with help info
fn print_help(&self)
Print the help of the wrapper command
fn run(&self)
Run the command
fn unwrap(self) -> Box<Command>
Return the embedded command