aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_webface.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_webface.py')
-rwxr-xr-xpython/fatcat_webface.py23
1 files changed, 10 insertions, 13 deletions
diff --git a/python/fatcat_webface.py b/python/fatcat_webface.py
index d12e8dad..acaa5936 100755
--- a/python/fatcat_webface.py
+++ b/python/fatcat_webface.py
@@ -6,21 +6,18 @@ from fatcat_web import app
def main():
- parser = argparse.ArgumentParser(
- formatter_class=argparse.ArgumentDefaultsHelpFormatter)
- parser.add_argument('--debug',
- action='store_true',
- help="enable debugging interface (note: not for everything)")
- parser.add_argument('--host',
- default="127.0.0.1",
- help="listen on this host/IP")
- parser.add_argument('--port',
- type=int,
- default=9810,
- help="listen on this port")
+ parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
+ parser.add_argument(
+ "--debug",
+ action="store_true",
+ help="enable debugging interface (note: not for everything)",
+ )
+ parser.add_argument("--host", default="127.0.0.1", help="listen on this host/IP")
+ parser.add_argument("--port", type=int, default=9810, help="listen on this port")
args = parser.parse_args()
app.run(debug=args.debug, host=args.host, port=args.port)
-if __name__ == '__main__':
+
+if __name__ == "__main__":
main()