"""
the NEWS file of Python 1.5.2a2 inspired me to look at
Tools/scripts/untabify.py. I wonder why it accepts a -t argument
but ignores it. The following patch tries to make it somewhat useful
(i.e., to override the tabsize=8 setting). Is that agreeable?
"""
This commit is contained in:
Guido van Rossum 1998-10-20 15:33:33 +00:00
parent fe78cc0f7e
commit 8fd0f147e7
1 changed files with 4 additions and 1 deletions

View File

@ -15,8 +15,11 @@ def main():
raise getopt.error, "At least one file argument required"
except getopt.error, msg:
print msg
print "usage:", sys.argv[0], "file ..."
print "usage:", sys.argv[0], "[-t tabwidth] file ..."
return
for optname, optvalue in opts:
if optname == '-t':
tabsize = int(optvalue)
for file in args:
process(file, tabsize)