don't print error when debug=false
This commit is contained in:
parent
aa9a474262
commit
ba1f64a731
6
main.go
6
main.go
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user