Skip to content

Commit edd9628

Browse files
authored
fix(cli): correctly print deprecated warnings (#8771)
In the previous implementation, it was possible for default-set values to trigger the deprecation warning.
1 parent ff794e4 commit edd9628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ func PrintDeprecatedOptions() clibase.MiddlewareFunc {
11481148
continue
11491149
}
11501150

1151-
if opt.Value.String() == opt.Default {
1151+
if opt.ValueSource == clibase.ValueSourceNone || opt.ValueSource == clibase.ValueSourceDefault {
11521152
continue
11531153
}
11541154

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy