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 <fredrik.lonnegren@suse.com>
  • Loading branch information
frelon committed Oct 11, 2024
1 parent 432d445 commit d09e23f
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 d09e23f

Please sign in to comment.