Skip to content

Commit

Permalink
fix: bug when no command and global options #845
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Dec 23, 2022
1 parent 8db0f7d commit b35ad62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b35ad62

Please sign in to comment.