Struct subcmd::CmdHandler [] [src]

pub struct CmdHandler<'a> { /* fields omitted */ }

Command line parser and subcommand runner

Example

use subcmd::CmdHandler;
let mut handler = CmdHandler::new();

// Add your custom command here
// handler.add(Box::new(MyCommand));
// handler.add(Box::new(AnotherCommand));

handler.run(); // Run main logic

Methods

impl<'a> CmdHandler<'a>
[src]

Create a new CmdHandler

Set a one line description, used in bin --help

Get the program description

Override default args

Register a new subcommand

Run the main logic