diff options
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/untabify.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/scripts/untabify.py b/Tools/scripts/untabify.py index 1f74973..7be9f38 100755 --- a/Tools/scripts/untabify.py +++ b/Tools/scripts/untabify.py @@ -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) |