Mercurial > hg > Applications > docker-wrapper
comparison numberfile.py @ 13:8e1f57c91210
add port manager to ie-docker.
author | taira |
---|---|
date | Tue, 03 Feb 2015 16:49:48 +0900 |
parents | |
children | 855a5e399f6e |
comparison
equal
deleted
inserted
replaced
12:1730494d9ecc | 13:8e1f57c91210 |
---|---|
1 #!/usr/bin/python | |
2 | |
3 import argparse | |
4 | |
5 if __name__ == "__main__": | |
6 parser = argparse.ArgumentParser(description='Create new project for ie-docker.') | |
7 parser.add_argument('number', metavar='N', help='start number.') | |
8 parser.add_argument('limit', metavar='N', help='limit number.') | |
9 parser.add_argument('filename', metavar='filename', help='output file name.') | |
10 args = parser.parse_args() | |
11 | |
12 f = open(args.filename,"w") | |
13 for num in range(int(args.number), int(args.limit)): | |
14 num_str = str(num) | |
15 f.write(num_str + "\n") | |
16 f.close() |