Mercurial > hg > Applications > docker-wrapper
view numberfile.py @ 13:8e1f57c91210
add port manager to ie-docker.
author | taira |
---|---|
date | Tue, 03 Feb 2015 16:49:48 +0900 |
parents | |
children | 855a5e399f6e |
line wrap: on
line source
#!/usr/bin/python import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='Create new project for ie-docker.') parser.add_argument('number', metavar='N', help='start number.') parser.add_argument('limit', metavar='N', help='limit number.') parser.add_argument('filename', metavar='filename', help='output file name.') args = parser.parse_args() f = open(args.filename,"w") for num in range(int(args.number), int(args.limit)): num_str = str(num) f.write(num_str + "\n") f.close()