def main():
args = sys.argv[1:]
if not args:
print "usage: [--todir dir][--tozip zipfile] dir [dir ...]";
sys.exit(1)
elif args[0] == '--todir':
todir = args[1]
del args[0:2]
if args:
destination = args[0]
copytodir(todir, destination)
else:
print 'error, closing.'
sys.exit(1)
In my IDE the bold line conforms to the indent, but how come here it does not? and when I try to run it I get an unexpected indent Traceback?
Bookmarks