1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-15 17:51:03 +00:00

Process non-cobra flags

This commit is contained in:
Ewout Prangsma 2018-02-13 15:10:58 +01:00
parent c64c199236
commit 02c746a0e5
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698

View file

@ -23,6 +23,7 @@
package main
import (
goflag "flag"
"fmt"
"net"
"net/http"
@ -34,6 +35,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/rs/zerolog"
"github.com/spf13/cobra"
flag "github.com/spf13/pflag"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
@ -87,6 +89,7 @@ func init() {
}
func main() {
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)
cmdMain.Execute()
}