Skip to content

Commit

Permalink
Fix silent arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriiklymiuk committed Oct 5, 2022
1 parent 334958f commit 6db6b7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ func canRunCliAgain(cmdExecuted string) bool {
}

func canShowWelcomeMessages() bool {
return os.Args[len(os.Args)-1] != "--silent"
for _, arg := range os.Args {
fmt.Println(arg)
if arg == "--silent" {
return false
}
}
return true
}

func showWelcomeMessage() {
Expand Down

0 comments on commit 6db6b7e

Please sign in to comment.