Fail the authelia-scripts commands when bad args are provided.
parent
23c093b9c6
commit
a8ce22ade7
|
@ -3,6 +3,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"log"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -117,5 +119,9 @@ func main() {
|
||||||
cobraCommands = append(cobraCommands, command)
|
cobraCommands = append(cobraCommands, command)
|
||||||
}
|
}
|
||||||
rootCmd.AddCommand(cobraCommands...)
|
rootCmd.AddCommand(cobraCommands...)
|
||||||
rootCmd.Execute()
|
err := rootCmd.Execute()
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue