Compare commits

...

1 Commits

Author SHA1 Message Date
epi
0cff62dbe2 return 0 when -h/--help is used 2021-07-05 06:33:40 -05:00
4 changed files with 7 additions and 5 deletions

4
Cargo.lock generated
View File

@@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "aho-corasick"
version = "0.7.18"
@@ -589,7 +591,7 @@ dependencies = [
[[package]]
name = "feroxbuster"
version = "2.3.0"
version = "2.3.1"
dependencies = [
"anyhow",
"assert_cmd",

View File

@@ -1,6 +1,6 @@
[package]
name = "feroxbuster"
version = "2.3.0"
version = "2.3.1"
authors = ["Ben 'epi' Risher <epibar052@gmail.com>"]
license = "MIT"
edition = "2018"

View File

@@ -432,7 +432,7 @@ EXAMPLES:
if arg == "--help" || arg == "-h" {
app.print_long_help().unwrap();
println!(); // just a newline to mirror original --help output
process::exit(1);
process::exit(0);
}
}

View File

@@ -19,7 +19,7 @@ fn parser_incorrect_param_with_tack_tack_help() {
.arg("-fc")
.arg("--help")
.assert()
.failure()
.success()
.stdout(predicate::str::contains("Ludicrous speed... go!"));
}
@@ -41,6 +41,6 @@ fn parser_incorrect_param_with_tack_h() {
.arg("-fc")
.arg("-h")
.assert()
.failure()
.success()
.stdout(predicate::str::contains("Ludicrous speed... go!"));
}