From b35ad623d419e6cb99920f0165ca39500d4a1950 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Fri, 23 Dec 2022 12:50:06 +0900 Subject: [PATCH] fix: bug when no command and global options #845 --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8bdc9f85e..e74e24bfb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -121,7 +121,10 @@ impl App { // Show usage when no arguments. if std::env::args().len() == 1 - || (stored_static.config.quiet && std::env::args().len() == 2) + || (std::env::args().len() == 2 + && (stored_static.config.quiet + || stored_static.config.no_color + || stored_static.config.debug)) { if !stored_static.config.quiet { self.output_logo(stored_static);