[src]

Function getopts::getopts

pub fn getopts(args: &[~str], optgrps: &[OptGroup]) -> Result

Parse command line arguments according to the provided options.

On success returns Ok(Opt). Use methods such as opt_present opt_str, etc. to interrogate results. Returns Err(Fail_) on failure. Use to_err_msg to get an error message.