Use pflags word separators to make - and _ equiv.

This commit is contained in:
Tim Hockin
2015-04-23 20:50:35 -07:00
parent 22db9fb176
commit 6694eff020
6 changed files with 12 additions and 13 deletions

View File

@@ -16,12 +16,11 @@ limitations under the License.
package util
import (
flag "github.com/spf13/pflag"
)
import "github.com/spf13/pflag"
// InitFlags normalizes and parses the command line flags
func InitFlags() {
pflag.CommandLine.SetWordSeparators([]string{"-", "_"})
AddAllFlagsToPFlags()
flag.Parse()
pflag.Parse()
}