summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
Diffstat (limited to 'args.go')
-rw-r--r--args.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/args.go b/args.go
index 670262d..5ff1f58 100644
--- a/args.go
+++ b/args.go
@@ -17,6 +17,11 @@ type ArgsDebugger struct {
Debugger bool `arg:"--debugger" help:"open the debugger window"`
}
+// returns true if --gui-debug was passed from the command line
+func ArgDebug() bool {
+ return argDebugger.Debugger
+}
+
func init() {
arg.Register(&argDebugger)