Compare commits
No commits in common. "master" and "v0.20.5" have entirely different histories.
5
args.go
5
args.go
|
@ -17,7 +17,6 @@ var argDebugger ArgsDebugger
|
||||||
// This struct can be used with the go-arg package
|
// This struct can be used with the go-arg package
|
||||||
type ArgsDebugger struct {
|
type ArgsDebugger struct {
|
||||||
Debugger bool `arg:"--debugger" help:"open the debugger window"`
|
Debugger bool `arg:"--debugger" help:"open the debugger window"`
|
||||||
Logger bool `arg:"--logger" help:"open the log.* control window"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns true if --gui-debug was passed from the command line
|
// returns true if --gui-debug was passed from the command line
|
||||||
|
@ -25,10 +24,6 @@ func ArgDebug() bool {
|
||||||
return argDebugger.Debugger
|
return argDebugger.Debugger
|
||||||
}
|
}
|
||||||
|
|
||||||
func ArgLogger() bool {
|
|
||||||
return argDebugger.Logger
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
arg.Register(&argDebugger)
|
arg.Register(&argDebugger)
|
||||||
|
|
||||||
|
|
4
main.go
4
main.go
|
@ -26,6 +26,10 @@ func DebugWindow() {
|
||||||
me.bugWin.Make()
|
me.bugWin.Make()
|
||||||
DebugWindow2(me.bugWin.Box(), "Debug Tab")
|
DebugWindow2(me.bugWin.Box(), "Debug Tab")
|
||||||
me.bugWin.Show()
|
me.bugWin.Show()
|
||||||
|
|
||||||
|
if ArgDebug() {
|
||||||
|
// log.SetTmp()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DebugWindow2(newB *gui.Node, title string) *gui.Node {
|
func DebugWindow2(newB *gui.Node, title string) *gui.Node {
|
||||||
|
|
Loading…
Reference in New Issue