fixed organized menu when args is empty #651

This commit is contained in:
DastInDark
2022-08-10 02:26:56 +09:00
parent 4f9b4559db
commit a74681f8fd
2 changed files with 1 additions and 7 deletions

View File

@@ -58,6 +58,7 @@ impl Default for ConfigReader<'_> {
usage = "hayabusa.exe <INPUT> [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 {

View File

@@ -89,13 +89,6 @@ impl App {
return;
}
let analysis_start_time: DateTime<Local> = 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!();