Fail the authelia-scripts commands when bad args are provided.

This commit is contained in:
Clement Michaud 2019-11-07 08:21:21 +01:00 committed by Clément Michaud
parent 23c093b9c6
commit a8ce22ade7

View File

@ -3,6 +3,8 @@
package main
import (
"log"
"github.com/spf13/cobra"
)
@ -117,5 +119,9 @@ func main() {
cobraCommands = append(cobraCommands, command)
}
rootCmd.AddCommand(cobraCommands...)
rootCmd.Execute()
err := rootCmd.Execute()
if err != nil {
log.Fatal(err)
}
}