print help option output when args length is hayabusa.exe only #387
This commit is contained in:
1 parent
f7ff096ac9
commit
f28ba4ae0c
1 file changed
+1
-7
+1
-7
@@ -86,17 +86,11 @@ impl App {
|
||||
}
|
||||
|
||||
let analysis_start_time: DateTime<Local> = Local::now();
|
||||
|
||||
// Show usage when no arguments.
|
||||
if std::env::args().len() == 1 {
|
||||
self.output_logo();
|
||||
println!();
|
||||
write_color_buffer(
|
||||
BufferWriter::stdout(ColorChoice::Always),
|
||||
None,
|
||||
configs::CONFIG.read().unwrap().args.usage(),
|
||||
)
|
||||
.ok();
|
||||
configs::CONFIG.write().unwrap().cmd.print_long_help().ok();
|
||||
println!();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user