Commit eb968517 authored by Laurent Bachelier's avatar Laurent Bachelier

More arguments for ass2m-serve

parent c62ca780
......@@ -26,6 +26,8 @@ import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('rootdir', help='root directory')
parser.add_argument('-p', '--port', help='server port', type=int, default=8042)
parser.add_argument('-i', '--ip', help='server IP', default='')
args = parser.parse_args()
server = Server(args.rootdir)
server.bind('', 8042)
server.bind(args.ip, args.port)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment