As per request, renamed nobundle to no-bundle to be more in line with the other multi word switches.

This commit is contained in:
Pauline Middelink 2016-02-27 10:46:13 +01:00
parent 96762fa6ba
commit 3b56b5a3e2
2 changed files with 4 additions and 4 deletions

4
cli.go
View file

@ -52,7 +52,7 @@ func main() {
Action: run, Action: run,
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "nobundle", Name: "no-bundle",
Usage: "Do not create a certificate bundle by adding the issuers certificate to the new certificate.", 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.", Usage: "Used to indicate you want to reuse your current private key for the new certificate.",
}, },
cli.BoolFlag{ cli.BoolFlag{
Name: "nobundle", Name: "no-bundle",
Usage: "Do not create a certificate bundle by adding the issuers certificate to the new certificate.", Usage: "Do not create a certificate bundle by adding the issuers certificate to the new certificate.",
}, },
}, },

View file

@ -198,7 +198,7 @@ func run(c *cli.Context) {
logger().Fatal("Please specify --domains or -d") 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 { if len(failures) > 0 {
for k, v := range failures { for k, v := range failures {
logger().Printf("[%s] Could not obtain certificates\n\t%s", k, v.Error()) 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 certRes.Certificate = certBytes
newCert, err := client.RenewCertificate(certRes, !c.Bool("nobundle")) newCert, err := client.RenewCertificate(certRes, !c.Bool("no-bundle"))
if err != nil { if err != nil {
logger().Fatalf("%s", err.Error()) logger().Fatalf("%s", err.Error())
} }