pub fn help() {
        let arg_options = ValidArguments::options();
        println!("Help:\nexample: program.exe mode=server address=127.0.0.1 port=25786");
        for (key, value) in arg_options {
            println!("{}: {}", key, value.description);
        }
    }
/// Prints help with example and current options.
/// Should be used after parsing fails
/// # Examples
///
/// ```
/// let arg = match Arguments::parse(&args) {
///         Ok(arguments) => arguments,
///         Err(error) => {
///             println!("\nError while parsing arguments: {}", error);
///             Arguments::help();
///             process::exit(1);
///         }
///     };
/// ```
Prints help with example and current options.
Should be used after parsing fails
Prints help with example and current options . Should be used after parsing fails
pub fn help() {
        let arg_options = ValidArguments::options();
        println!("Help:\nexample: program.exe mode=server address=127.0.0.1 port=25786");
        for (key, value) in arg_options {
            println!("{}: {}", key, value.description);
        }
    }
pub fn help ( ) { let arg_options = ValidArguments :: options ( ) ; println ! ( " \n " ) ; for ( key , value ) in arg_options { println ! ( " " key value description ) ; } }
Prints help with example and current options.
Prints help with example and current options .
examples
```
let arg = match Arguments::parse(&args) {
Ok(arguments) => arguments,
Err(error) => {
println!("\nError while parsing arguments: {}", error);
Arguments::help();
process::exit(1);
}
};
```
` ` ` let arg = match Arguments :: parse ( &args ) { Ok ( arguments ) = > arguments Err ( error ) = > { println! ( " \ nError while parsing arguments : {} " error ) ; Arguments :: help () ; process :: exit ( 1 ) ; } } ; ` ` `