diff options
Diffstat (limited to 'torouterui/server.py')
-rw-r--r-- | torouterui/server.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/torouterui/server.py b/torouterui/server.py new file mode 100644 index 0000000..17cd5ca --- /dev/null +++ b/torouterui/server.py @@ -0,0 +1,13 @@ + +from torouterui import app +import argparse + + +def main(): + """Primary entry-point for torouterui. + """ + parser = argparse.ArgumentParser() + parser.add_argument('--debug', action='store_true', + help="enable debugging interface") + args = parser.parse_args() + app.run(debug=args.debug) |