From 8e5e48f39b54d0568d17aefb4e73949dd9ae231f Mon Sep 17 00:00:00 2001 From: Adphi Date: Wed, 4 Mar 2020 09:28:45 +0100 Subject: [PATCH] cobra silent usage --- service/command.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/service/command.go b/service/command.go index e2e7965..b0b87ba 100644 --- a/service/command.go +++ b/service/command.go @@ -6,14 +6,15 @@ import ( ) var cmd = &cobra.Command{ - Short: "A gRPC micro service", + Short: "A gRPC micro service", + SilenceUsage: true, } const ( - caCert = "ca_cert" + caCert = "ca_cert" serverAddress = "server_address" - serverCert = "server_cert" - serverKey = "server_key" + serverCert = "server_cert" + serverKey = "server_key" ) func init() {