Archived
1
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
lantern/lantern/args.py
2017-04-11 21:27:19 +01:00

10 lines
288 B
Python

import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("handler", help="Executable to run", type=str)
parser.add_argument("--port", help="Port to listen on", type=int, default=8000)
parser.add_help = True
return parser.parse_args()