Struct ecla::App
[−]
[src]
pub struct App { /* fields omitted */ }
Command line application
Methods
impl App
[src]
fn new<T: Into<String>>(help: T, version: T) -> App
Create a new command line application.
fn get_command(&self, name: &str) -> Option<Command>
Get sub command
fn has_flag(&self) -> bool
Check arguments if has flags
fn show_unknown_or_help(&self)
If you can not find any supported sub commands or flags, you can use this to tell user something is wrong.
fn has_command(&self) -> bool
Check arguments if has sub command
fn get_flag<T: AsRef<str>>(&self, names: &[T]) -> Option<Flag>
Get flag
fn show_command_unknown(&self)
Tell user is entering an unknown sub command
fn show_help(&self)
Print help message
fn show_version(&self)
Print version