Struct man::Flag [−][src]
pub struct Flag { /* fields omitted */ }
Command line flag representation.
Methods
impl Flag
[src]
impl Flag
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a new instance.
pub fn short(self, short: &str) -> Self
[src]
pub fn short(self, short: &str) -> Self
Set the short value.
pub fn long(self, long: &str) -> Self
[src]
pub fn long(self, long: &str) -> Self
Set the long value.
pub fn help(self, help: &str) -> Self
[src]
pub fn help(self, help: &str) -> Self
Set the help value.
Trait Implementations
impl Debug for Flag
[src]
impl Debug for Flag
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Flag
[src]
impl Clone for Flag