From 55251b5020d4724fc7af22bedcbfffd50a4f2eb2 Mon Sep 17 00:00:00 2001 From: Adphi Date: Wed, 8 Dec 2021 13:57:49 +0100 Subject: [PATCH] command: allow unknown flags --- service/command.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/command.go b/service/command.go index 28e2054..99492b3 100644 --- a/service/command.go +++ b/service/command.go @@ -6,8 +6,9 @@ import ( ) var cmd = &cobra.Command{ - Short: "A gRPC micro service", - SilenceUsage: true, + Short: "A gRPC micro service", + SilenceUsage: true, + FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true}, } const (