fn match_arguments_and_call_tasks(mut args: std::env::Args) {
    // the first argument is the user defined task: (no argument for help), build, release,...
    let arg_1 = args.next();
    match arg_1 {
        None => print_help(),
        Some(task) => {
            if &task == "completion" {
                completion();
            } else {
                println!("Running automation task: {}", &task);
                if &task == "build" {
                    task_build();
                } else if &task == "build_and_run" {
                    task_build_and_run();
                } else if &task == "release" {
                    task_release();
                } else if &task == "release_and_run" {
                    task_release_and_run();
                } else if &task == "test" {
                    task_test();
                } else if &task == "doc" {
                    task_docs();
                } else if &task == "commit_and_push" {
                    let arg_2 = args.next();
                    task_commit_and_push(arg_2);
                } else if &task == "publish_to_crates_io_cargo_crev_reviews" {
                    task_publish_to_crates_io_cargo_crev_reviews();
                } else {
                    println!("Task {} is unknown.", &task);
                    print_help();
                }
            }
        }
    }
}
/// match arguments and call tasks functions
match arguments and call tasks functions
match arguments and call tasks functions
fn match_arguments_and_call_tasks(mut args: std::env::Args) {
    // the first argument is the user defined task: (no argument for help), build, release,...
    let arg_1 = args.next();
    match arg_1 {
        None => print_help(),
        Some(task) => {
            if &task == "completion" {
                completion();
            } else {
                println!("Running automation task: {}", &task);
                if &task == "build" {
                    task_build();
                } else if &task == "build_and_run" {
                    task_build_and_run();
                } else if &task == "release" {
                    task_release();
                } else if &task == "release_and_run" {
                    task_release_and_run();
                } else if &task == "test" {
                    task_test();
                } else if &task == "doc" {
                    task_docs();
                } else if &task == "commit_and_push" {
                    let arg_2 = args.next();
                    task_commit_and_push(arg_2);
                } else if &task == "publish_to_crates_io_cargo_crev_reviews" {
                    task_publish_to_crates_io_cargo_crev_reviews();
                } else {
                    println!("Task {} is unknown.", &task);
                    print_help();
                }
            }
        }
    }
}
fn match_arguments_and_call_tasks ( mut args : std :: env :: Args ) { // the first argument is the user defined task: (no argument for help), build, release,... let arg_1 = args . next ( ) ; match arg_1 { None => print_help ( ) , Some ( task ) => { if & task == " " { completion ( ) ; } else { println ! ( " " task ) ; if & task == " " { task_build ( ) ; } else if & task == " " { task_build_and_run ( ) ; } else if & task == " " { task_release ( ) ; } else if & task == " " { task_release_and_run ( ) ; } else if & task == " " { task_test ( ) ; } else if & task == " " { task_docs ( ) ; } else if & task == " " { let arg_2 = args . next ( ) ; task_commit_and_push ( arg_2 ) ; } else if & task == " " { task_publish_to_crates_io_cargo_crev_reviews ( ) ; } else { println ! ( " " task ) ; print_help ( ) ; } } } } }
match arguments and call tasks functions
match arguments and call tasks functions
args
std::env::Args