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"` } // returns the toolkit func ArgToolkit() string { return argGui.GuiPlugin } func init() { arg.Register(&argGui) }