Skip to content

Commit

Permalink
:p: Add SilenceUsage to rootCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbaile committed Jul 4, 2023
1 parent 945715f commit 8a43d53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func init() {
// Cobra supports persistent flags, which, if defined here,
// will be global for your application.

rootCmd.SilenceUsage = true
rootCmd.CompletionOptions.DisableDefaultCmd = true
rootCmd.Flags().StringVarP(&inputFile, "input", "i", "", "Input template file (Required)")
rootCmd.MarkFlagRequired("input")
Expand Down

0 comments on commit 8a43d53

Please sign in to comment.