mirror of https://github.com/knative/client.git
remove printing err when running root command (#615)
This commit is contained in:
parent
de7e3880d4
commit
a56afabc8a
|
|
@ -35,7 +35,9 @@ func main() {
|
|||
rand.Seed(time.Now().UnixNano())
|
||||
err = core.NewDefaultKnCommand().Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
if err.Error() != "subcommand is required" {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
}
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue