parse_args_from_providers

Function parse_args_from_providers 

Source
pub fn parse_args_from_providers<T>(
    providers: &[&dyn ArgProvider],
) -> Result<T, ParseError>
where T: FromArgs,
Expand description

This will load all the Arguments from the given Providers and then attempt to parse an instance of T from that Collection of Arguments

Examples found in repository?
examples/simple_ci.rs (line 28)
27pub fn main() {
28    let cli: CLI = argser::parse_args_from_providers(&[&argser::provider::Cli::new()]).unwrap();
29
30    println!("Cli: {:?}", cli);
31}