Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 9a0e71e

Browse files
committed
use pflag instead of flag for better command line parsing
1 parent 47fc33b commit 9a0e71e

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,5 @@ zz_generated.openapi.go
138138
# binaries
139139
/openstack-cloud-controller-manager
140140
/cinder-flex-volume-driver
141-
/cinder-provisioner
141+
/cinder-provisioner
142+
/k8s-keystone-auth

cmd/cinder-provisioner/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
package main
1818

1919
import (
20-
"flag"
20+
flag "github.com/spf13/pflag"
2121

2222
"git.openstack.org/openstack/openstack-cloud-controller-manager/pkg/volume/cinder/provisioner"
2323
"github.com/golang/glog"

cmd/k8s-keystone-auth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
package main
1616

1717
import (
18-
"flag"
18+
flag "github.com/spf13/pflag"
1919
"log"
2020
"net/http"
2121

0 commit comments

Comments
 (0)