From 7dd5f0ab8d5307ce849eee7e9e7d339c41c67fa4 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 29 Jan 2015 01:18:00 -0800 Subject: [PATCH] Remove redundant --tls flag --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.go b/main.go index e3928554b..feaba0eef 100644 --- a/main.go +++ b/main.go @@ -28,10 +28,6 @@ func main() { Value: "", Usage: "key.pem", }, - cli.BoolFlag{ - Name: "tls,t", - Usage: "http address to listen on", - }, cli.StringFlag{ Name: "storage-type,s", Value: "file", @@ -39,12 +35,12 @@ func main() { }, } app.Action = func(c *cli.Context) { - tls := c.Bool("tls") storageTypeStr := c.String("storage-type") address := c.String("http-address") log.Println(address) certFile := c.String("cert") keyFile := c.String("key") + tls := (certFile != "" && keyFile != "") storageType := getStorageType(storageTypeStr) serverConfig := server.ServerConfig{ Address: address,