forked from TrueCloudLab/lego
cli fixes for short args
This commit is contained in:
parent
bf740fa2ca
commit
dc57d2d8ba
1 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) {
|
|||
}
|
||||
|
||||
conf := NewConfiguration(c)
|
||||
if !c.GlobalIsSet("email") {
|
||||
if len(c.GlobalString(email)) == 0 {
|
||||
logger().Fatal("You have to pass an account (email address) to the program using --email or -m")
|
||||
}
|
||||
|
||||
|
@ -122,8 +122,8 @@ func run(c *cli.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
if !c.GlobalIsSet("domains") {
|
||||
logger().Fatal("Please specify --domains")
|
||||
if len(c.GlobalStringSlice(domains)) == 0 {
|
||||
logger().Fatal("Please specify --domains or -d")
|
||||
}
|
||||
|
||||
cert, failures := client.ObtainSANCertificate(c.GlobalStringSlice("domains"), true)
|
||||
|
|
Loading…
Reference in a new issue