From 2899573b8dd7d68cd57ba8aa56019c6048161589 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Thu, 9 Mar 2023 17:35:20 +0000 Subject: [PATCH] fix: remove deprecation warnings when option unset Resolves #6531 --- cli/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/server.go b/cli/server.go index f7bd46130e0c4..fd7514460444d 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 + " "