Skip to content

Commit

Permalink
Dont print usage when an error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumerose committed Nov 25, 2020
1 parent fbe30d8 commit d175112
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ var Version = "dev"

func main() {
rootCmd := &cobra.Command{
Use: "admin-helper",
Version: Version,
Use: "admin-helper",
Version: Version,
SilenceUsage: true,
}

rootCmd.AddCommand(cmd.Commands()...)
Expand Down

0 comments on commit d175112

Please sign in to comment.