From 62a64d5a349862ebb53d532a421e6bc045079b79 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Thu, 9 Mar 2023 13:22:21 -0600 Subject: [PATCH] fix: remove deprecation warnings when option unset (#6532) Resolves #6531 --- cli/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/server.go b/cli/server.go index f7bd46130e..fd75144604 100644 --- a/cli/server.go +++ b/cli/server.go @@ -257,6 +257,10 @@ flags, and YAML configuration. The precedence is as follows: continue } + if opt.Value.String() == opt.Default { + continue + } + warnStr := opt.Name + " is deprecated, please use " for i, use := range opt.UseInstead { warnStr += use.Name + " "