aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Aschan <[email protected]>2025-09-02 06:54:41 +0200
committerGitHub <[email protected]>2025-09-02 06:54:41 +0200
commit72abab1d978352c34a7274f374d30f413e1c83f3 (patch)
tree3d5c5850add1ff6bfac8d96e623ccc83b9b31ef3
parent10438578954bba2527fe5cae3684d4532b064bbe (diff)
parent45a48733e35ba296a5f4dcc2b01996b89dc91a06 (diff)
Merge pull request #447 from thaJeztah/fix_deprecation_comment
fix deprecation comment for (FlagSet.)ParseErrorsWhitelist
-rw-r--r--flag.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/flag.go b/flag.go
index eeed1e9..82eced8 100644
--- a/flag.go
+++ b/flag.go
@@ -143,8 +143,9 @@ type ParseErrorsAllowlist struct {
UnknownFlags bool
}
-// DEPRECATED: please use ParseErrorsAllowlist instead
-// This type will be removed in a future release
+// ParseErrorsWhitelist defines the parsing errors that can be ignored.
+//
+// Deprecated: use [ParseErrorsAllowlist] instead. This type will be removed in a future release.
type ParseErrorsWhitelist = ParseErrorsAllowlist
// NormalizedName is a flag name that has been normalized according to rules
@@ -165,8 +166,9 @@ type FlagSet struct {
// ParseErrorsAllowlist is used to configure an allowlist of errors
ParseErrorsAllowlist ParseErrorsAllowlist
- // DEPRECATED: please use ParseErrorsAllowlist instead
- // This field will be removed in a future release
+ // ParseErrorsAllowlist is used to configure an allowlist of errors.
+ //
+ // Deprecated: use [FlagSet.ParseErrorsAllowlist] instead. This field will be removed in a future release.
ParseErrorsWhitelist ParseErrorsAllowlist
name string