1
0
mirror of https://github.com/ko-build/ko.git synced 2024-11-24 08:12:26 +02:00

Silence usage report on internal errors (#397)

This commit is contained in:
Evan Anderson 2021-07-26 15:48:07 -07:00 committed by GitHub
parent c014ec1feb
commit 7b8b24fa32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,8 +33,9 @@ func main() {
// Parent command to which all subcommands are added.
cmds := &cobra.Command{
Use: "ko",
Short: "Rapidly iterate with Go, Containers, and Kubernetes.",
Use: "ko",
Short: "Rapidly iterate with Go, Containers, and Kubernetes.",
SilenceUsage: true, // Don't show usage on errors
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},