Struct man::Opt [−][src]
pub struct Opt { /* fields omitted */ }
Option
Methods
impl Opt
[src]
impl Opt
pub fn new(name: &str) -> Self
[src]
pub fn new(name: &str) -> Self
Create a new instance.
pub fn default_value(self, default: &str) -> Self
[src]
pub fn default_value(self, default: &str) -> Self
Set the default value.
pub fn help(self, help: &str) -> Self
[src]
pub fn help(self, help: &str) -> Self
Set the help.
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.
Trait Implementations
impl Debug for Opt
[src]
impl Debug for Opt
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 Opt
[src]
impl Clone for Opt