diff options
| author | Jeff Carr <[email protected]> | 2023-12-29 09:24:06 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-29 09:24:06 -0600 |
| commit | 4b0077cce106d638944ecd8a6d49ee23fae79dc4 (patch) | |
| tree | 123d38cd74ec6650fcd912ea0c8ad6f9e143e6a1 /args.go | |
| parent | 015847b28ee5dc5c7cfd29dfcbe14e3a2624569c (diff) | |
save 'universal' go-arg
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'args.go')
| -rw-r--r-- | args.go | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +package gui + +import ( + arg "github.com/alexflint/go-arg" +) + +var guiArg GuiArgs + +// This struct can be used with the go-arg package +type GuiArgs struct { + Gui string `arg:"--gui" help:"Use this gui toolkit [andlabs,gocui,nocui]"` + GuiDebug bool `arg:"--gui-debug" help:"open the GUI debugger"` + GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"` +} + +func init() { + arg.Register(&guiArg) +} + +func GetArg(a string) bool { + return guiArg.GuiDebug +} |
