cobra silent usage

This commit is contained in:
Adphi 2020-03-04 09:28:45 +01:00
parent af25e09154
commit 8e5e48f39b

View File

@ -6,14 +6,15 @@ import (
) )
var cmd = &cobra.Command{ var cmd = &cobra.Command{
Short: "A gRPC micro service", Short: "A gRPC micro service",
SilenceUsage: true,
} }
const ( const (
caCert = "ca_cert" caCert = "ca_cert"
serverAddress = "server_address" serverAddress = "server_address"
serverCert = "server_cert" serverCert = "server_cert"
serverKey = "server_key" serverKey = "server_key"
) )
func init() { func init() {