don't print error when debug=false

This commit is contained in:
Quentin Perez 2016-12-14 11:08:51 +01:00
parent aa9a474262
commit ba1f64a731
No known key found for this signature in database
GPG Key ID: 7C6DCB859CF22206

View File

@ -43,9 +43,11 @@ func main() {
templateDir = parts[1] templateDir = parts[1]
break break
case "debug": case "debug":
if parts[1] == "true" { switch strings.ToLower(parts[1]) {
case "true", "t":
debug = true debug = true
} else { case "false", "f":
default:
log.Printf("Err: invalid value for debug: %q", parts[1]) log.Printf("Err: invalid value for debug: %q", parts[1])
} }
break break