fn parse_args() -> Result<Args> {
    let mut pargs = Arguments::from_env();

    if pargs.contains(["-h", "--help"]) {
        println!("{HELP}");
        exit(0);
    }

    if pargs.contains(["-v", "--version"]) {
        println!("Jinx v{}", env!("CARGO_PKG_VERSION"));
        exit(0);
    }

    let args = Args {
        _template: "".to_string(),
    };

    let remaining = pargs.finish();
    if !remaining.is_empty() {
        bail!("Unknown arguments: {:?}", remaining);
    }

    Ok(args)
}
/// Parse command line arguments (if any).
Parse command line arguments (if any).
Parse command line arguments ( if any ) .
fn parse_args() -> Result<Args> {
    let mut pargs = Arguments::from_env();
    if pargs.contains(["-h", "--help"]) {
        println!("{HELP}");
        exit(0);
    }
    if pargs.contains(["-v", "--version"]) {
        println!("Jinx v{}", env!("CARGO_PKG_VERSION"));
        exit(0);
    }
    let args = Args {
        _template: "".to_string(),
    };
    let remaining = pargs.finish();
    if !remaining.is_empty() {
        bail!("Unknown arguments: {:?}", remaining);
    }
    Ok(args)
}
fn parse_args ( ) -> Result < Args > { let mut pargs = Arguments :: from_env ( ) ; if pargs . contains ( [ " " , " " ] ) { println ! ( " " ) ; exit ( 0 ) ; } if pargs . contains ( [ " " , " " ] ) { println ! ( " " env ( " " ) ) ; exit ( 0 ) ; } let args = Args { _template : " " . to_string ( ) , } ; let remaining = pargs . finish ( ) ; if ! remaining . is_empty ( ) { bail ! ( " " remaining ) ; } Ok ( args ) }
Parse command line arguments (if any).
Parse command line arguments ( if any ) .