Skip to content

Commit

Permalink
refact: For simplicity, condition was changed to whether the action e…
Browse files Browse the repository at this point in the history
…xists or not #845
  • Loading branch information
hitenkoku committed Dec 23, 2022
1 parent b35ad62 commit 5fd24f2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!();
Expand Down

0 comments on commit 5fd24f2

Please sign in to comment.