From 5d467367d19be251e018f87ffc3dc2d3c0e83e57 Mon Sep 17 00:00:00 2001 From: Oren Shomron Date: Wed, 29 Aug 2018 17:04:43 -0400 Subject: [PATCH] Use github.com/shomron/pflag fork until spf13/pflag/pull/173 is merged Signed-off-by: Oren Shomron --- bash_completions.go | 2 +- command.go | 2 +- command_test.go | 2 +- doc/man_docs.go | 2 +- doc/yaml_docs.go | 3 +-- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bash_completions.go b/bash_completions.go index 63274d96f5..e82ef54b19 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -8,7 +8,7 @@ import ( "sort" "strings" - "github.com/spf13/pflag" + "github.com/shomron/pflag" ) // Annotations for Bash completion. diff --git a/command.go b/command.go index 34d1bf3671..f5341b708b 100644 --- a/command.go +++ b/command.go @@ -24,7 +24,7 @@ import ( "sort" "strings" - flag "github.com/spf13/pflag" + flag "github.com/shomron/pflag" ) // FParseErrWhitelist configures Flag parse errors to be ignored diff --git a/command_test.go b/command_test.go index 6e483a3ec4..7001173531 100644 --- a/command_test.go +++ b/command_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/spf13/pflag" + "github.com/shomron/pflag" ) func emptyRun(*Command, []string) {} diff --git a/doc/man_docs.go b/doc/man_docs.go index e5dbda2dad..27c6fbc7c0 100644 --- a/doc/man_docs.go +++ b/doc/man_docs.go @@ -24,8 +24,8 @@ import ( "time" "github.com/cpuguy83/go-md2man/md2man" + "github.com/shomron/pflag" "github.com/spf13/cobra" - "github.com/spf13/pflag" ) // GenManTree will generate a man page for this command and all descendants diff --git a/doc/yaml_docs.go b/doc/yaml_docs.go index ea00af07e8..bf8639c009 100644 --- a/doc/yaml_docs.go +++ b/doc/yaml_docs.go @@ -21,9 +21,8 @@ import ( "sort" "strings" + "github.com/shomron/pflag" "github.com/spf13/cobra" - "github.com/spf13/pflag" - "gopkg.in/yaml.v2" ) type cmdOption struct {