Skip to content

Commit

Permalink
default to silent when parallel used
Browse files Browse the repository at this point in the history
  • Loading branch information
epi052 committed Mar 1, 2024
1 parent df7b6ab commit f3d6d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/config/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,12 @@ impl Configuration {
.collect();
}

if came_from_cli!(args, "silent") {
if came_from_cli!(args, "quiet") {
config.quiet = true;
config.output_level = OutputLevel::Quiet;
}

if came_from_cli!(args, "silent") || (config.parallel > 0 && !config.quiet) {
// the reason this is protected by an if statement:
// consider a user specifying silent = true in ferox-config.toml
// if the line below is outside of the if, we'd overwrite true with
Expand All @@ -804,11 +809,6 @@ impl Configuration {
};
}

if came_from_cli!(args, "quiet") {
config.quiet = true;
config.output_level = OutputLevel::Quiet;
}

if came_from_cli!(args, "auto_tune")
|| came_from_cli!(args, "smart")
|| came_from_cli!(args, "thorough")
Expand Down
1 change: 0 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ pub fn initialize() -> Command {
.conflicts_with("verbosity")
.num_args(1)
.requires("stdin")
.requires("output_limiters")
.help_heading("Scan settings")
.help("Run parallel feroxbuster instances (one child process per url passed via stdin)")
)
Expand Down

0 comments on commit f3d6d18

Please sign in to comment.