From 0ad0a76670bbdc990e532f29c34e2fbe7f19c0b3 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Wed, 15 Jun 2022 03:26:04 +0900 Subject: [PATCH] fixed no output when q opion only --- src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.rs b/src/main.rs index b28f5a3e..b3c6f931 100644 --- a/src/main.rs +++ b/src/main.rs @@ -276,6 +276,14 @@ impl App { .ok(); } return; + } else { + write_color_buffer( + BufferWriter::stdout(ColorChoice::Always), + None, + &configs::CONFIG.read().unwrap().headless_help, + ) + .ok(); + return; } let analysis_end_time: DateTime = Local::now();