pub fn badargs<S>() -> BadArgs
where
    S: IntoSchema,
{
    let arg_schema = Schema::create::<S>().expect("Invalid schema");

    let args = CliArgs::from_args(&arg_schema, std::env::args_os());
    match args {
        Ok(args) => BadArgs { args },
        Err(err) => reporting::report(err, &arg_schema),
    }
}
///
/// Parses the command line arguments based on the provided schema S
///
/// # Panics
///
/// This function panics if an invalid schema is entered
///
Parses the command line arguments based on the provided schema S
Parses the command line arguments based on the provided schema S
pub fn badargs<S>() -> BadArgs
where
    S: IntoSchema,
{
    let arg_schema = Schema::create::<S>().expect("Invalid schema");
    let args = CliArgs::from_args(&arg_schema, std::env::args_os());
    match args {
        Ok(args) => BadArgs { args },
        Err(err) => reporting::report(err, &arg_schema),
    }
}
pub fn badargs < S > ( ) -> BadArgs where S : IntoSchema , { let arg_schema = Schema :: create :: < S > ( ) . expect ( " " ) ; let args = CliArgs :: from_args ( & arg_schema , std :: env :: args_os ( ) ) ; match args { Ok ( args ) => BadArgs { args } , Err ( err ) => reporting :: report ( err , & arg_schema ) , } }
Parses the command line arguments based on the provided schema S
Parses the command line arguments based on the provided schema S
panics
This function panics if an invalid schema is entered
This function panics if an invalid schema is entered