Struct ecla::Command
[−]
[src]
pub struct Command { /* fields omitted */ }
Sub command
Methods
impl Command
[src]
fn new(name: String) -> Command
Create a sub command
fn set_flags(&mut self, flags: HashMap<String, Flag>)
Set sub command's flags
fn add_value(&mut self, value: String)
Set sub command's value
fn get_flag<T: AsRef<str>>(&self, names: &[T]) -> Option<Flag>
Get a flag by flag names
fn get_value_array(&self) -> Option<Vec<String>>
Get sub command's values
fn get_value(&self) -> Option<String>
Get sub command's value
fn get_name(&self) -> String
Get sub command's name
fn add_flag(&mut self, name: String, value: Option<String>)
Add a flag to sub command
Trait Implementations
impl Debug for Command
[src]
impl Clone for Command
[src]
fn clone(&self) -> Command
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more