From fd65e8f02e59f115c33fe73475742693027eebbd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 15 Nov 2024 20:04:22 -0600 Subject: try to add --no-gui --- args.go | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 args.go (limited to 'args.go') diff --git a/args.go b/args.go deleted file mode 100644 index 861d55b..0000000 --- a/args.go +++ /dev/null @@ -1,32 +0,0 @@ -package gui - -import ( - "go.wit.com/dev/alexflint/arg" -) - -var argGui ArgsGui - -/* -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,nogui]"` - GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"` -} - -/* -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 -} - -func init() { - arg.Register(&argGui) -} -- cgit v1.2.3