2023-04-12 12:21:23 -05:00
|
|
|
package main
|
|
|
|
|
2024-01-03 22:09:15 -06:00
|
|
|
/*
|
|
|
|
this enables command line options from other packages like 'gui' and 'log'
|
|
|
|
*/
|
|
|
|
|
2023-04-12 12:21:23 -05:00
|
|
|
import (
|
2024-01-03 22:09:15 -06:00
|
|
|
"go.wit.com/log"
|
|
|
|
"go.wit.com/arg"
|
|
|
|
"go.wit.com/gui/debugger"
|
2023-04-12 12:21:23 -05:00
|
|
|
)
|
|
|
|
|
2024-01-03 22:09:15 -06:00
|
|
|
var argGui ArgsGui
|
|
|
|
|
|
|
|
// This struct can be used with the go-arg package
|
|
|
|
type ArgsGui struct {
|
|
|
|
Test bool `arg:"--test" help:"enable all logging"`
|
|
|
|
}
|
|
|
|
|
2023-04-12 12:21:23 -05:00
|
|
|
func init() {
|
2024-01-03 22:09:15 -06:00
|
|
|
arg.MustParse(&argGui)
|
|
|
|
|
|
|
|
if debugger.ArgDebug() {
|
|
|
|
log.Log(true, "INIT() gui debug == true")
|
|
|
|
} else {
|
|
|
|
log.Log(true, "INIT() gui debug == false")
|
|
|
|
}
|
2023-04-12 12:21:23 -05:00
|
|
|
}
|