Add --fatal option

Close #8
This commit is contained in:
Daniele Rondina
2020-01-03 15:41:45 +01:00
parent c284d3e4bf
commit 7ec36da059
5 changed files with 12 additions and 4 deletions

View File

@@ -164,6 +164,9 @@ func msg(level string, msg ...interface{}) {
func Warning(mess ...interface{}) {
msg("warning", mess...)
if LuetCfg.GetGeneral().FatalWarns {
os.Exit(2)
}
}
func Debug(mess ...interface{}) {