blob: dc4a32206b451f033a770c848af57a26f6b44cbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// This creates a simple hello world window
package main
import (
"log"
"git.wit.org/wit/gui"
arg "github.com/alexflint/go-arg"
)
type LogOptions struct {
LogFile string
Verbose bool
User string `arg:"env:USER"`
}
var args struct {
LogOptions
gui.GuiArgs
}
func init() {
arg.MustParse(&args)
log.Println("Toolkit = ", args.Toolkit)
if (args.GuiDebug) {
gui.DebugWindow()
}
if (args.GuiVerbose) {
gui.SetDebug(true)
}
}
|