I am facing the following issue: several commands in github.com/kubernetes-csi use the Go flag package for argument parsing. The single-dash flags are part of the API, so we can't just switch to pflag argument parsing without a major version bump.
At the same time we want to use support code from Kubernetes where flags are added to a pflag FlagSet.
What I am therefore looking for is:
- an option in pflag to emulate traditional Go argument parsing or
- a way to copy flags from a pflag FlagSet into a Go FlagSet
I am facing the following issue: several commands in github.com/kubernetes-csi use the Go flag package for argument parsing. The single-dash flags are part of the API, so we can't just switch to pflag argument parsing without a major version bump.
At the same time we want to use support code from Kubernetes where flags are added to a pflag FlagSet.
What I am therefore looking for is: