Skip to content

Commit 374a8cf

Browse files
build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10 (#6054)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 05d1475 commit 374a8cf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ require (
108108
github.com/sonatard/noctx v0.4.0
109109
github.com/sourcegraph/go-diff v0.7.0
110110
github.com/spf13/cobra v1.10.1
111-
github.com/spf13/pflag v1.0.9
111+
github.com/spf13/pflag v1.0.10
112112
github.com/spf13/viper v1.12.0
113113
github.com/ssgreg/nlreturn/v2 v2.2.1
114114
github.com/stbenjam/no-sprintf-host-port v0.2.0

go.sum

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/commands/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func forceRootParsePersistentFlags() (*rootOptions, error) {
127127
fs := pflag.NewFlagSet("config flag set", pflag.ContinueOnError)
128128

129129
// Ignore unknown flags because we will parse the command flags later.
130-
fs.ParseErrorsWhitelist = pflag.ParseErrorsWhitelist{UnknownFlags: true}
130+
fs.ParseErrorsAllowlist = pflag.ParseErrorsAllowlist{UnknownFlags: true}
131131

132132
opts := &rootOptions{}
133133

0 commit comments

Comments
 (0)