Skip to content

Commit

Permalink
Don't print command usage information on every error (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
moskyb authored Dec 9, 2024
1 parent ea89d8a commit 1ab1f23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ import (

func NewCmdRoot(f *factory.Factory) (*cobra.Command, error) {
cmd := &cobra.Command{
Use: "bk <command> <subcommand> [flags]",
Short: "Buildkite CLI",
Long: "Work with Buildkite from the command line.",
Use: "bk <command> <subcommand> [flags]",
Short: "Buildkite CLI",
Long: "Work with Buildkite from the command line.",
SilenceUsage: true,
Example: heredoc.Doc(`
$ bk build view
`),
Expand Down

0 comments on commit 1ab1f23

Please sign in to comment.