File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const (
3939)
4040
4141// FParseErrWhitelist configures Flag parse errors to be ignored
42- type FParseErrWhitelist flag.ParseErrorsWhitelist
42+ type FParseErrWhitelist flag.ParseErrorsAllowlist
4343
4444// Group Structure to manage groups for commands
4545type Group struct {
@@ -1877,7 +1877,7 @@ func (c *Command) ParseFlags(args []string) error {
18771877 c .mergePersistentFlags ()
18781878
18791879 // do it here after merging all flags and just before parse
1880- c .Flags ().ParseErrorsWhitelist = flag .ParseErrorsWhitelist (c .FParseErrWhitelist )
1880+ c .Flags ().ParseErrorsAllowlist = flag .ParseErrorsAllowlist (c .FParseErrWhitelist )
18811881
18821882 err := c .Flags ().Parse (args )
18831883 // Print warnings if they occurred (e.g. deprecated flag messages).
Original file line number Diff line number Diff line change 55require (
66 github.com/cpuguy83/go-md2man/v2 v2.0.6
77 github.com/inconshreveable/mousetrap v1.1.0
8- github.com/spf13/pflag v1.0.6
8+ github.com/spf13/pflag v1.0.8
99 gopkg.in/yaml.v3 v3.0.1
1010)
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2
44github.tiyicn.workers.dev/inconshreveable/mousetrap v1.1.0 /go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw =
55github.tiyicn.workers.dev/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk =
66github.tiyicn.workers.dev/russross/blackfriday/v2 v2.1.0 /go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM =
7- github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o =
8- github.com/spf13/pflag v1.0.6 /go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg =
7+ github.com/spf13/pflag v1.0.8 h1:/v546uKZ4gFGHpyXvV6CNKDeJBu4l5PRvxwQvdWrc0I =
8+ github.com/spf13/pflag v1.0.8 /go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg =
99gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
1010gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
1111gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
You can’t perform that action at this time.
0 commit comments