Mercurial > hg > Applications > docker-wrapper
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/numberfile.py Tue Feb 03 16:49:48 2015 +0900 @@ -0,0 +1,16 @@ +#!/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()