Struct sarge::ArgumentParser
source · Fields§
§binary: Option<String>Implementations§
source§impl ArgumentParser
impl ArgumentParser
sourcepub fn parse(&mut self) -> Result<Vec<String>, ArgParseError>
pub fn parse(&mut self) -> Result<Vec<String>, ArgParseError>
Parse arguments from std::env::args.
sourcepub fn parse_args(
&mut self,
args: Vec<String>
) -> Result<Vec<String>, ArgParseError>
pub fn parse_args(
&mut self,
args: Vec<String>
) -> Result<Vec<String>, ArgParseError>
Parses the provided arguments.
Trait Implementations§
source§impl Clone for ArgumentParser
impl Clone for ArgumentParser
source§fn clone(&self) -> ArgumentParser
fn clone(&self) -> ArgumentParser
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ArgumentParser
impl Debug for ArgumentParser
source§impl Default for ArgumentParser
impl Default for ArgumentParser
source§fn default() -> ArgumentParser
fn default() -> ArgumentParser
Returns the “default value” for a type. Read more