diff --git a/twander.py b/twander.py index 75ded5b..f93a656 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.131 2003/03/10 20:51:34 tundra Exp $" +RCSID = "$Id: twander.py,v 3.132 2003/03/10 21:55:02 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -732,6 +732,7 @@ dCMD = "COMMAND" dCMDTBL = hCOMMANDS dDIRSTK = "DIRECTORY STACK" +dFALSE = "False" dFUNCKEYS = hDIRSC dHEADER = "twander Debug Dump Run On: %s\n" dHIST = "COMMAND HISTORY STACK" @@ -742,6 +743,7 @@ dNULL = "None" dOPTVAR = hOPTVBLS dSYMTBL = hUSERVBLS +dTRUE = "True" dWILDSTK = "WILDCARD STACK" # Debug Formatting @@ -4225,9 +4227,22 @@ def GetOptions(): debuginfo = [] - for l in (UI.OptionsBoolean, UI.OptionsNumeric, UI.OptionsString): + for l,f in ((UI.OptionsBoolean, True), (UI.OptionsNumeric, False), (UI.OptionsString, False)): for v in l: - debuginfo.append(PadString(v, dOPTIONWIDTH) + (str(eval(v)) or dNULL)) + + value = eval(v) + # Translate Booleans into True/False strings + if f: + if value: + s = dTRUE + else: + s = dFALSE + + # Translate all others into string representations + else: + s = str(value) + + debuginfo.append(PadString(v, dOPTIONWIDTH) + (s or dNULL)) debuginfo.sort() return debuginfo