Add option to support sslrootcert parameter
This commit is contained in:
@@ -19,6 +19,7 @@ type Options struct {
|
||||
Pass string `long:"pass" description:"Password for user"`
|
||||
DbName string `long:"db" description:"Database name"`
|
||||
Ssl string `long:"ssl" description:"SSL option"`
|
||||
SslRootCert string `long:"ssl-root-cert" description:"SSL Root Cert"`
|
||||
HTTPHost string `long:"bind" description:"HTTP server host" default:"localhost"`
|
||||
HTTPPort uint `long:"listen" description:"HTTP server listen port" default:"8081"`
|
||||
AuthUser string `long:"auth-user" description:"HTTP basic auth user"`
|
||||
@@ -43,6 +44,7 @@ type Options struct {
|
||||
|
||||
var Opts Options
|
||||
|
||||
// ParseOptions returns a new options struct from the input arguments
|
||||
func ParseOptions(args []string) (Options, error) {
|
||||
var opts = Options{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user