Skip to content

Commit

Permalink
Do not print usage if erroring out in RunE()
Browse files Browse the repository at this point in the history
If RunE() fails this usually means a called function failed, not that
the CLI tool was called with the wrong flags.
  • Loading branch information
eest committed Dec 19, 2024
1 parent 9342e8e commit ad1b304
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ var (

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "sunet-cdn-manager",
Short: "Management system for SUNET CDN",
Use: "sunet-cdn-manager",
SilenceUsage: true,
Short: "Management system for SUNET CDN",
Long: `This is the management system where users of SUNET CDN manage
their cache rules etc.`,
// Uncomment the following line if your bare application
Expand Down

0 comments on commit ad1b304

Please sign in to comment.