diff options
Diffstat (limited to 'argv.template.go')
| -rw-r--r-- | argv.template.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/argv.template.go b/argv.template.go index cd4421d..1808722 100644 --- a/argv.template.go +++ b/argv.template.go @@ -10,6 +10,8 @@ import ( "go.wit.com/dev/alexflint/arg" "go.wit.com/gui" + "go.wit.com/lib/ENV" + "go.wit.com/lib/fhelp" "go.wit.com/log" ) @@ -52,9 +54,17 @@ func (args) WriteHelp() error { return nil } +func (args) InitGui() error { + // panic("got here") + arg.Register(&gui.ArgvGui) + // me.gui = gui.PreInit() + me.myGui = fhelp.Gui() + return nil +} + func (args) Exit() { gui.UnloadToolkits() - if me.argv.Verbose() { + if ENV.Verbose() { log.Info("argv.Exit() called", APPNAME+".Exit()") } // remove this from the template for your app (or make one for youself if you need it) |
