Skip to content

Commit

Permalink
Disable usage output on errors
Browse files Browse the repository at this point in the history
This causes command help messages to appear everytime an error is triggered.
  • Loading branch information
bamarni committed Jul 9, 2018
1 parent 1574786 commit 67e8c88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/dcos.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func NewDCOSCommand(ctx api.Context) *cobra.Command {
cmd := &cobra.Command{
Use: "dcos",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
cmd.SilenceUsage = true
if verbose == 1 {
// -v sets the logger level to info.
ctx.Logger().SetLevel(logrus.InfoLevel)
Expand Down

0 comments on commit 67e8c88

Please sign in to comment.