From ee23a34cf2dc9a1eb6e485e047d07096de3d8164 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 8 Jun 2020 22:15:56 -0700 Subject: [PATCH] Add debug flag for run cli --- inquisitor/cli.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/inquisitor/cli.py b/inquisitor/cli.py index edf5383..c6ecd3d 100644 --- a/inquisitor/cli.py +++ b/inquisitor/cli.py @@ -193,9 +193,16 @@ def command_feed(args): def command_run(args): """Run the default Flask server.""" + parser = argparse.ArgumentParser( + prog="inquisitor run", + description=command_run.__doc__, + add_help=False) + parser.add_argument("--debug", action="store_true") + args = parser.parse_args(args) + try: from inquisitor.app import app - app.run() + app.run(debug=args.debug) return 0 except Exception as e: logger.error(e)