diff --git a/tren.py b/tren.py index 2626c0c..f2ecadc 100755 --- a/tren.py +++ b/tren.py @@ -7,7 +7,7 @@ PROGNAME = "tren.py" PROGENV = PROGNAME.split(".py")[0].upper() -RCSID = "$Id: tren.py,v 1.124 2010/01/30 18:27:51 tundra Exp $" +RCSID = "$Id: tren.py,v 1.125 2010/01/30 18:43:36 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -17,6 +17,8 @@ OWNER = "TundraWare Inc." COPYRIGHT = "Copyright %s %s %s " % (CPRT, DATE, OWNER) +PROGVER = PROGNAME + " " + VERSION + (" - %s" % COPYRIGHT) + #----------------------------------------------------------# # Variables User Might Change # @@ -139,7 +141,7 @@ # Usage Prompts ##### -uTable = [PROGNAME + " " + VERSION + " - %s\n" % COPYRIGHT, +uTable = [PROGVER, "\n", "usage: " + PROGNAME + " [-1abCcdEefghqtvwXx] [-I file] [-l string] [-r old=new]... file|dir file|dir ...", " where,", " -1 Rename only the first instance of the specified string (Default)", @@ -428,7 +430,6 @@ def DumpRenameObj(obj): SEPARATOR = SEPCHAR * MAXLINELEN - DebugMsg("\n") DebugMsg(SEPARATOR) DebugMsg(dDUMPOBJ % str(obj)) DebugMsg(SEPARATOR) @@ -440,7 +441,7 @@ for item in obj.RenNames[name]: DebugMsg(ColumnPad([" ", item])) - DebugMsg(SEPARATOR + "\n\n") + DebugMsg(SEPARATOR) # End of 'DumpRenameObj()' @@ -452,13 +453,13 @@ def DumpState(): SEPARATOR = SEPCHAR * MAXLINELEN - DebugMsg("\n") DebugMsg(SEPARATOR) DebugMsg(dCURSTATE) DebugMsg(SEPARATOR) # Names of all the state variables we want dumped state = [ + "PROGVER", "DEBUG", "CASESENSITIVE", "ERRORCONTINUE", @@ -475,7 +476,7 @@ for k in state: DebugMsg(ColumnPad([k, eval(k)])) - DebugMsg(SEPARATOR + "\n\n") + DebugMsg(SEPARATOR) # End of 'DumpState()'