Skip to content

Commit

Permalink
silence cmd usage except when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
gardener-robot-ci-2 authored and g-pavlov committed Nov 9, 2020
1 parent 24424b6 commit fcafb7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/app/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func NewCommand(ctx context.Context, cancel context.CancelFunc) *cobra.Command {
Use: "docforge",
Short: "Build documentation bundle",
RunE: func(cmd *cobra.Command, args []string) error {
cmd.SilenceUsage = true
options := NewOptions(flags)
doc := Manifest(flags.documentationManifestPath, flags.variables)
if err := api.ValidateManifest(doc); err != nil {
Expand Down

0 comments on commit fcafb7d

Please sign in to comment.