blob: f9bb15db440aa11cb4e9c20d4236791502a83a99 (
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
32
33
  | 
package main
/*
	enables GUI options and the debugger in your application
*/
import (
	"go.wit.com/dev/alexflint/arg"
	"go.wit.com/lib/debugger"
	"go.wit.com/log"
)
var argv args
type args struct {
	Daemon bool `arg:"--daemon" help:"run without a gui"`
}
func init() {
	arg.MustParse(&argv)
	if debugger.ArgDebug() {
		log.Info("cmd line --debugger == true")
		go func() {
			log.Sleep(2)
			debugger.DebugWindow()
		}()
	}
}
func (args) Version() string {
	return "go-clone " + VERSION + "    Built on " + BUILDTIME
}
  |