parent
9371ff5bce
commit
cef110a3fc
|
@ -73,14 +73,14 @@ func parseFlags() {
|
|||
var hostname string
|
||||
|
||||
// always override the debugging flag from the command line
|
||||
var debugging *bool
|
||||
var debug *bool
|
||||
var debugtable *bool
|
||||
|
||||
flag.StringVar (&hostname, "hostname", "localhost", "Your full hostname")
|
||||
|
||||
height := flag.Int ("height", 0, "Height of the Window")
|
||||
width := flag.Int ("width", 0, "Width of the Window")
|
||||
debugging = flag.Bool("debugging", false, "Enable debugging")
|
||||
debug = flag.Bool("debug", false, "Enable debugging")
|
||||
debugtable = flag.Bool("debugtable", false, "Enable GUI table debugging")
|
||||
|
||||
// Set the output if something fails to stdout rather than stderr
|
||||
|
@ -110,7 +110,7 @@ func parseFlags() {
|
|||
}
|
||||
|
||||
// never allow these to be set in the config file
|
||||
config.Debugging = *debugging
|
||||
config.Debug = *debug
|
||||
config.Debugtable = *debugtable
|
||||
}
|
||||
|
||||
|
@ -198,7 +198,7 @@ func parseConfig() {
|
|||
|
||||
log.Println("config.width", config.Width)
|
||||
log.Println("config.height", config.Height)
|
||||
log.Println("config.debugging", config.Debugging)
|
||||
log.Println("config.debug", config.Debug)
|
||||
|
||||
// check that the config parsing worked
|
||||
for key, foo := range config.Accounts {
|
||||
|
|
2
main.go
2
main.go
|
@ -127,7 +127,7 @@ func main() {
|
|||
gui.Data.HomeDir = user.HomeDir
|
||||
|
||||
// Set output debugging level
|
||||
gui.Data.Debug = config.Debugging
|
||||
gui.Data.Debug = config.Debug
|
||||
gui.Data.DebugTable = config.Debugtable
|
||||
log.Println("gui.Data.Debug = ", gui.Data.Debug)
|
||||
log.Println("gui.Data.DebugTable = ", gui.Data.DebugTable)
|
||||
|
|
Loading…
Reference in New Issue