summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
Diffstat (limited to 'args.go')
-rw-r--r--args.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/args.go b/args.go
index 87deb0f..4752f53 100644
--- a/args.go
+++ b/args.go
@@ -12,6 +12,7 @@ var argLog ArgLog
// This struct can be used with the go-arg package
type ArgLog struct {
+ LogDebug bool `arg:"--log-debug" help:"show the log gui"`
LogTmp bool `arg:"--log-tmp" help:"send all output /tmp"`
LogStdout bool `arg:"--log-stdout" help:"send all output to STDOUT"`
LogQuiet bool `arg:"--log-quiet" help:"suppress all output"`
@@ -20,3 +21,8 @@ type ArgLog struct {
func init() {
arg.Register(&argLog)
}
+
+// returns true if --log-debug was passed from the command line
+func ArgDebug() bool {
+ return argLog.LogDebug
+}