1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-05 20:02:38 +02:00

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,
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.",
},
},

View File

@ -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())
}