From 3b56b5a3e29a148f389275030827a33e946d9404 Mon Sep 17 00:00:00 2001 From: Pauline Middelink Date: Sat, 27 Feb 2016 10:46:13 +0100 Subject: [PATCH] As per request, renamed nobundle to no-bundle to be more in line with the other multi word switches. --- cli.go | 4 ++-- cli_handlers.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli.go b/cli.go index a02ad78e..b23adc21 100644 --- a/cli.go +++ b/cli.go @@ -52,7 +52,7 @@ func main() { Action: run, Flags: []cli.Flag{ cli.BoolFlag{ - Name: "nobundle", + Name: "no-bundle", Usage: "Do not create a certificate bundle by adding the issuers certificate to the new certificate.", }, }, @@ -77,7 +77,7 @@ func main() { Usage: "Used to indicate you want to reuse your current private key for the new certificate.", }, cli.BoolFlag{ - Name: "nobundle", + Name: "no-bundle", Usage: "Do not create a certificate bundle by adding the issuers certificate to the new certificate.", }, }, diff --git a/cli_handlers.go b/cli_handlers.go index 2b614ade..32f4a8f4 100644 --- a/cli_handlers.go +++ b/cli_handlers.go @@ -198,7 +198,7 @@ func run(c *cli.Context) { logger().Fatal("Please specify --domains or -d") } - cert, failures := client.ObtainCertificate(c.GlobalStringSlice("domains"), !c.Bool("nobundle"), nil) + cert, failures := client.ObtainCertificate(c.GlobalStringSlice("domains"), !c.Bool("no-bundle"), nil) if len(failures) > 0 { for k, v := range failures { logger().Printf("[%s] Could not obtain certificates\n\t%s", k, v.Error()) @@ -295,7 +295,7 @@ func renew(c *cli.Context) { certRes.Certificate = certBytes - newCert, err := client.RenewCertificate(certRes, !c.Bool("nobundle")) + newCert, err := client.RenewCertificate(certRes, !c.Bool("no-bundle")) if err != nil { logger().Fatalf("%s", err.Error()) }