Enum extra::getopts::Fail_

pub enum Fail_ {
    ArgumentMissing(~str),
    UnrecognizedOption(~str),
    OptionMissing(~str),
    OptionDuplicated(~str),
    UnexpectedArgument(~str),
}

The type returned when the command line does not conform to the expected format. Pass this value to to get an error message.

Methods

impl Fail_

fn to_err_msg(self) -> ~str

Convert a Fail_ enum into an error string.

Trait Implementations

impl std::clone::Clone for Fail_

fn clone(&self) -> Fail_

impl std::cmp::Eq for Fail_

fn eq(&self, __arg_0: &Fail_) -> bool

fn ne(&self, __arg_0: &Fail_) -> bool

impl std::to_str::ToStr for Fail_

fn to_str(&self) -> ~str