Skip to content

Commit f3d6d18

Browse files
committed
default to silent when parallel used
1 parent df7b6ab commit f3d6d18

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/config/container.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,12 @@ impl Configuration {
791791
.collect();
792792
}
793793

794-
if came_from_cli!(args, "silent") {
794+
if came_from_cli!(args, "quiet") {
795+
config.quiet = true;
796+
config.output_level = OutputLevel::Quiet;
797+
}
798+
799+
if came_from_cli!(args, "silent") || (config.parallel > 0 && !config.quiet) {
795800
// the reason this is protected by an if statement:
796801
// consider a user specifying silent = true in ferox-config.toml
797802
// if the line below is outside of the if, we'd overwrite true with
@@ -804,11 +809,6 @@ impl Configuration {
804809
};
805810
}
806811

807-
if came_from_cli!(args, "quiet") {
808-
config.quiet = true;
809-
config.output_level = OutputLevel::Quiet;
810-
}
811-
812812
if came_from_cli!(args, "auto_tune")
813813
|| came_from_cli!(args, "smart")
814814
|| came_from_cli!(args, "thorough")

src/parser.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ pub fn initialize() -> Command {
488488
.conflicts_with("verbosity")
489489
.num_args(1)
490490
.requires("stdin")
491-
.requires("output_limiters")
492491
.help_heading("Scan settings")
493492
.help("Run parallel feroxbuster instances (one child process per url passed via stdin)")
494493
)

0 commit comments

Comments
 (0)