(args []string)
| 12 | } |
| 13 | |
| 14 | func TurnOnDebuggingByArgs(args []string) { |
| 15 | // debug needs to be parsed at the beginning to have DEBUG enabled as quickly as possible |
| 16 | // otherwise, parsing others or other parameters don't have debug enabled |
| 17 | for i := 0; i < len(args); i++ { |
| 18 | if args[i] == "--debug" { |
| 19 | isDebug = true |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func Error(text string) { |
| 25 | WithPrefix(text, "ERROR ") |