diff --git a/src/detections/configs.rs b/src/detections/configs.rs index aecab75b..7518db47 100644 --- a/src/detections/configs.rs +++ b/src/detections/configs.rs @@ -58,6 +58,7 @@ impl Default for ConfigReader<'_> { usage = "hayabusa.exe [OTHER-ACTIONS] [OPTIONS]", author = "Yamato Security (https://github.com/Yamato-Security/hayabusa) @SecurityYamato)", version, + arg_required_else_help = true, term_width = 400 )] pub struct Config { diff --git a/src/main.rs b/src/main.rs index b7fe4801..f19bc556 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,13 +89,6 @@ impl App { return; } let analysis_start_time: DateTime = Local::now(); - // Show usage when no arguments. - if std::env::args().len() == 1 { - self.output_logo(); - configs::CONFIG.write().unwrap().app.print_help().ok(); - println!(); - return; - } if !configs::CONFIG.read().unwrap().args.quiet { self.output_logo(); println!();