Skip to content
Myr

Bump pflag to 1.0.8 (#2303)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

In pflag, we recently made a breaking change in naming to be more inclusive. This change, while doing nothing to address the same uninclusive naming in cobra itself, adjusts to those changes to ensure automatic bumps (if you do them) can continue uninterrupted.

authored by Tomas Aschan · committed by GitHub · parent 3f3b818 · Browse files · 3 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−5 removed

  • other:+5 added−5 removed

3 files+5 added−5 removed

modified:command.go+2 added-2 removed
37 unmodified lines
38 helpCommandName = "help"39)4041// FParseErrWhitelist configures Flag parse errors to be ignored42type FParseErrWhitelist flag.ParseErrorsWhitelist42type FParseErrWhitelist flag.ParseErrorsAllowlist4344// Group Structure to manage groups for commands45type Group struct {46 ID string
1829 unmodified lines
1876 beforeErrorBufLen := c.flagErrorBuf.Len()1877 c.mergePersistentFlags()18781879 // do it here after merging all flags and just before parse1880 c.Flags().ParseErrorsWhitelist = flag.ParseErrorsWhitelist(c.FParseErrWhitelist)1880 c.Flags().ParseErrorsAllowlist = flag.ParseErrorsAllowlist(c.FParseErrWhitelist)18811882 err := c.Flags().Parse(args)1883 // Print warnings if they occurred (e.g. deprecated flag messages).1884 if c.flagErrorBuf.Len()-beforeErrorBufLen > 0 && err == nil {
188 unmodified lines
modified:go.mod+1 added-1 removed
3 unmodified lines
45require (6 github.com/cpuguy83/go-md2man/v2 v2.0.67 github.com/inconshreveable/mousetrap v1.1.08 github.com/spf13/pflag v1.0.68 github.com/spf13/pflag v1.0.89 gopkg.in/yaml.v3 v3.0.110)
modified:go.sum+2 added-2 removed
2 unmodified lines
3github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=4github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=5github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=6github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=7github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=8github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=7github.com/spf13/pflag v1.0.8 h1:/v546uKZ4gFGHpyXvV6CNKDeJBu4l5PRvxwQvdWrc0I=8github.com/spf13/pflag v1.0.8/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=9gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=10gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=11gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=12gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=