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

pull/436/head
Clement Michaud 2019-11-07 08:21:21 +01:00 committed by Clément Michaud
parent 23c093b9c6
commit a8ce22ade7
1 changed files with 7 additions and 1 deletions

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