MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / TurnOnDebuggingByArgs

Function TurnOnDebuggingByArgs

say/say.go:14–22  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

12}
13
14func 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
24func Error(text string) {
25 WithPrefix(text, "ERROR ")

Callers 1

runFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected