diff options
| author | Jeff Carr <[email protected]> | 2024-02-13 06:57:29 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-13 06:57:29 -0600 |
| commit | 9ccb688abc390d7669f71c45a396579e79b941a8 (patch) | |
| tree | b4d281841740647b5d6a84ac5d9db5e7921824de /args.go | |
| parent | e29005dc0e72ad17bc68bf0d0e7af0fc1daff716 (diff) | |
better docs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'args.go')
| -rw-r--r-- | args.go | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -6,7 +6,10 @@ import ( var argGui ArgsGui -// This struct can be used with the go-arg package +/* +This struct can be used with the go-arg package. These +are the generic default command line arguments for the 'GUI' 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"` @@ -14,7 +17,14 @@ type ArgsGui struct { // GuiStdout bool `arg:"--gui-stdout" help:"send STDOUT and STDERR to /tmp/go-gui.log"` } -// returns the toolkit +/* +used for command line options. +This allows you to control the toolkit settings from the command line + + --debugger # opens the debugger + --gui andlabs # loads the GTK toolkit on linux or Cocoa on mac + --gui gocui # runs your program in the terminal in ncurses-like mode +*/ func ArgToolkit() string { return argGui.GuiPlugin } |
