1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

Fix glog issue: ERROR: logging before flag.Parse.

This commit is contained in:
Avesh Agarwal
2018-01-09 12:54:52 -05:00
parent 44752e5e83
commit e858c9ee80

View File

@@ -17,15 +17,18 @@ limitations under the License.
package main
import (
"flag"
"fmt"
"github.com/kubernetes-incubator/descheduler/cmd/descheduler/app"
"os"
"github.com/kubernetes-incubator/descheduler/cmd/descheduler/app"
)
func main() {
out := os.Stdout
cmd := app.NewDeschedulerCommand(out)
cmd.AddCommand(app.NewVersionCommand())
flag.CommandLine.Parse([]string{})
if err := cmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)