fix Debug name

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-28 17:24:45 -07:00
parent 9371ff5bce
commit cef110a3fc
2 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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)