2017-10-27 01:03:11 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
2017-10-27 02:26:54 +00:00
|
|
|
"runtime"
|
2017-10-27 01:03:11 +00:00
|
|
|
|
|
|
|
"github.com/kirsle/doodle"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Build number is the git commit hash.
|
|
|
|
var Build string
|
|
|
|
|
|
|
|
// Command line args
|
|
|
|
var (
|
|
|
|
debug bool
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
flag.BoolVar(&debug, "debug", false, "Debug mode")
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
2017-10-27 02:26:54 +00:00
|
|
|
runtime.LockOSThread()
|
2017-10-27 01:03:11 +00:00
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
app := doodle.New(debug)
|
2017-10-27 02:26:54 +00:00
|
|
|
app.Run()
|
2017-10-27 01:03:11 +00:00
|
|
|
}
|