Skip to content

Commit

Permalink
add SilenceUsage: true to root.go
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhelfand authored and tekton-robot committed Sep 9, 2019
1 parent 6950ae0 commit ab5f516
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ func Root(p cli.Params) *cobra.Command {
pflag.CommandLine = pflag.NewFlagSet(os.Args[0], pflag.ExitOnError)

var cmd = &cobra.Command{
Use: "tkn",
Short: "CLI for tekton pipelines",
Long: ``,
Use: "tkn",
Short: "CLI for tekton pipelines",
Long: ``,
SilenceUsage: true,
}
cobra.AddTemplateFunc("HasMainSubCommands", hasMainSubCommands)
cobra.AddTemplateFunc("HasUtilitySubCommands", hasUtilitySubCommands)
Expand Down

0 comments on commit ab5f516

Please sign in to comment.