summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-16 20:36:02 -0600
committerJeff Carr <[email protected]>2024-02-16 20:36:02 -0600
commitb2feffce92c86fc88b942da92cbc8084ed2340be (patch)
tree9374c70f620400ea8070670e8f91b447eb4d494e /args.go
parent8c873d7ab223458ed00e44996d121bcf5b2fd0eb (diff)
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 bb9e793..4f81c66 100644
--- a/args.go
+++ b/args.go
@@ -17,6 +17,7 @@ var argDebugger ArgsDebugger
// This struct can be used with the go-arg package
type ArgsDebugger struct {
Debugger bool `arg:"--debugger" help:"open the debugger window"`
+ Logger bool `arg:"--logger" help:"open the log.* control window"`
}
// returns true if --gui-debug was passed from the command line
@@ -24,6 +25,10 @@ func ArgDebug() bool {
return argDebugger.Debugger
}
+func ArgLogger() bool {
+ return argDebugger.Logger
+}
+
func init() {
arg.Register(&argDebugger)