fix(cli): correctly print deprecated warnings (#8771)

In the previous implementation, it was possible for default-set values
to trigger the deprecation warning.
This commit is contained in:
Ammar Bandukwala
2023-07-27 16:42:18 +00:00
committed by GitHub
parent ff794e4b23
commit edd9628aa6
+1 -1
View File
@@ -1148,7 +1148,7 @@ func PrintDeprecatedOptions() clibase.MiddlewareFunc {
continue
}
if opt.Value.String() == opt.Default {
if opt.ValueSource == clibase.ValueSourceNone || opt.ValueSource == clibase.ValueSourceDefault {
continue
}