summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go19
1 files changed, 2 insertions, 17 deletions
diff --git a/main.go b/main.go
index 7af7d4a..c92965e 100644
--- a/main.go
+++ b/main.go
@@ -1,18 +1,12 @@
package main
import (
- "os"
-
- "go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
"go.wit.com/lib/gadgets"
- "go.wit.com/lib/gui/prep"
+ "go.wit.com/lib/protobuf/argvpb"
"go.wit.com/log"
)
-// sent via -ldflags
-var VERSION string
-
// this is the primary window. If you close it, the program will exit
var mainWindow *gui.Node
@@ -27,16 +21,7 @@ var colors *gui.Node
func main() {
me := new(mainType)
- me.myGui = prep.Gui() // prepares the GUI package for go-args
- me.pp = arg.MustParse(&argv)
-
- // for very new users or users unfamilar with the command line, this may help them
- if argv.Demo == "version" || argv.Demo == "help" || argv.Demo == "?" {
- me.pp.WriteHelp(os.Stdout)
- os.Exit(0)
- }
-
- me.myGui.Start() // loads the GUI toolkit (GO Plugins)
+ me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args
helloworld()
basicWindow = makebasicWindow()