Skip to content

Commit

Permalink
Set SilenceUsage for run-stage command
Browse files Browse the repository at this point in the history
This ensures we do not show the usage text for errors caught during yip
execution.

Signed-off-by: Fredrik Lönnegren <[email protected]>
  • Loading branch information
frelon committed Oct 2, 2024
1 parent 5253240 commit 196c69c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/run-stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func NewRunStage(root *cobra.Command) *cobra.Command {
return elementalError.NewFromError(err, elementalError.ReadingRunConfig)
}

cmd.SilenceUsage = true

err = utils.RunStage(&cfg.Config, args[0], cfg.Strict, cfg.CloudInitPaths...)
return elementalError.NewFromError(err, elementalError.CloudInitRunStage)
},
Expand Down

0 comments on commit 196c69c

Please sign in to comment.