aboutsummaryrefslogtreecommitdiff
path: root/flag_test.go
diff options
context:
space:
mode:
authorTomas Aschan <[email protected]>2025-07-17 11:32:04 +0200
committerGitHub <[email protected]>2025-07-17 11:32:04 +0200
commitc78f730fb023e4012c4097b24408867cd5c5bdde (patch)
tree71e39980c518afe645c279857d1f3377b9b50ff3 /flag_test.go
parentc2fd743bf6955c7ac319714a7855bd184cc58af7 (diff)
parent0aa4171c4229535ef4247b9283732fb21867b08e (diff)
Merge pull request #261 from dubrie/master
Switching from whitelist to Allowlist terminology. Fixes #294
Diffstat (limited to 'flag_test.go')
-rw-r--r--flag_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/flag_test.go b/flag_test.go
index ead0518..2df3ea2 100644
--- a/flag_test.go
+++ b/flag_test.go
@@ -451,7 +451,7 @@ func testParseWithUnknownFlags(f *FlagSet, t *testing.T) {
if f.Parsed() {
t.Error("f.Parse() = true before Parse")
}
- f.ParseErrorsWhitelist.UnknownFlags = true
+ f.ParseErrorsAllowlist.UnknownFlags = true
f.BoolP("boola", "a", false, "bool value")
f.BoolP("boolb", "b", false, "bool2 value")