Skip to content

Commit

Permalink
add SilenceUsage and SilenceErrors to validateCommand
Browse files Browse the repository at this point in the history
Signed-off-by: luyanbo <robert.lyb@alibaba-inc.com>
  • Loading branch information
robberphex committed Sep 14, 2021
1 parent 9d701db commit 72d1ef4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmd/limactl/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ import (

func newValidateCommand() *cobra.Command {
var validateCommand = &cobra.Command{
Use: "validate FILE.yaml [FILE.yaml, ...]",
Short: "Validate YAML files",
Args: cobra.MinimumNArgs(1),
RunE: validateAction,
Use: "validate FILE.yaml [FILE.yaml, ...]",
Short: "Validate YAML files",
Args: cobra.MinimumNArgs(1),
RunE: validateAction,
SilenceUsage: true,
SilenceErrors: true,
}
return validateCommand
}
Expand Down

0 comments on commit 72d1ef4

Please sign in to comment.