Changed -v so it dumps and *continues* - this allows its output to be included in a rename output log.
1 parent 9309925 commit 79873a6b8a690d92d6c829d34b28baffdf4cb67e
@tundra tundra authored on 5 Feb 2010
Showing 1 changed file
View
5
tren.py
 
PROGNAME = "tren.py"
BASENAME = PROGNAME.split(".py")[0]
PROGENV = BASENAME.upper()
RCSID = "$Id: tren.py,v 1.148 2010/02/05 21:22:44 tundra Exp $"
RCSID = "$Id: tren.py,v 1.149 2010/02/05 21:25:31 tundra Exp $"
VERSION = RCSID.split()[2]
 
# Copyright Information
 
" -R rensep Separator string for -r rename arguments (Default: %s)" % DEFSEP,
" -r old=new Replace old with new in file or directory names",
" -S suffix Suffix to use when renaming existing filenames (Default: %s)" % DEFSUFFIX,
" -t Test mode, don't rename, just show what the program *would* do",
" -v Print detailed program version information and exit",
" -v Print detailed program version information and continue",
" -w Line length of diagnostic and error output (Default: %s)" % DEFLEN,
" -X Treat the renaming strings literally (Default)",
" -x Treat the old replacement string as a Python regular expression",
]
ProgramOptions[TESTMODE] = True
 
if opt == "-v":
PrintStdout(RCSID)
sys.exit(0)
 
if opt == "-w":
try:
l = int(val)