summaryrefslogtreecommitdiff
path: root/args.go
blob: c63905eea3f62fac10f155dace06e3b6e05a32eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package gui

import (
	"go.wit.com/dev/alexflint/arg"
)

var argGui ArgsGui

// This struct can be used with the go-arg package
type ArgsGui struct {
	GuiPlugin  string `arg:"--gui" help:"Use this gui toolkit [andlabs,gocui,nocui]"`
	GuiVerbose bool   `arg:"--gui-verbose" help:"enable all logging"`
	// this doesn't work, maybe it can't work
	// GuiStdout  bool   `arg:"--gui-stdout" help:"send STDOUT and STDERR to /tmp/go-gui.log"`
}

// returns the toolkit
func ArgToolkit() string {
	return argGui.GuiPlugin
}

func init() {
	arg.Register(&argGui)
}