From 5fd24f29efc671947cbc07a394a12cea524c61fd Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Fri, 23 Dec 2022 13:01:32 +0900 Subject: [PATCH] refact: For simplicity, condition was changed to whether the action exists or not #845 --- src/main.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index e74e24bfb..9af5f8eee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -120,12 +120,7 @@ impl App { } // Show usage when no arguments. - if std::env::args().len() == 1 - || (std::env::args().len() == 2 - && (stored_static.config.quiet - || stored_static.config.no_color - || stored_static.config.debug)) - { + if stored_static.config.action.is_none() { if !stored_static.config.quiet { self.output_logo(stored_static); println!();