mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #3499 from smarterclayton/double_print_usage_errors
kubectl is double printing errors
This commit is contained in:
commit
84ce5c441a
@ -20,14 +20,11 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd"
|
||||
|
||||
"github.com/golang/glog"
|
||||
)
|
||||
|
||||
func main() {
|
||||
cmd := cmd.NewFactory().NewKubectlCommand(os.Stdout)
|
||||
if err := cmd.Execute(); err != nil {
|
||||
glog.Errorf("error: %v", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user