mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
Silence usage report on internal errors (#397)
This commit is contained in:
@@ -33,8 +33,9 @@ func main() {
|
|||||||
|
|
||||||
// Parent command to which all subcommands are added.
|
// Parent command to which all subcommands are added.
|
||||||
cmds := &cobra.Command{
|
cmds := &cobra.Command{
|
||||||
Use: "ko",
|
Use: "ko",
|
||||||
Short: "Rapidly iterate with Go, Containers, and Kubernetes.",
|
Short: "Rapidly iterate with Go, Containers, and Kubernetes.",
|
||||||
|
SilenceUsage: true, // Don't show usage on errors
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
cmd.Help()
|
cmd.Help()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user