From 4320cb63e55dc8b57cadcf266496221936c48e18 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 30 Dec 2020 12:22:49 -0800 Subject: [PATCH] Add port argument to run cli --- inquisitor/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inquisitor/cli.py b/inquisitor/cli.py index d34b3fb..1aa148b 100644 --- a/inquisitor/cli.py +++ b/inquisitor/cli.py @@ -218,11 +218,12 @@ def command_run(args): description=command_run.__doc__, add_help=False) parser.add_argument("--debug", action="store_true") + parser.add_argument("--port", type=int, default=5000) args = parser.parse_args(args) try: from inquisitor.app import app - app.run(debug=args.debug) + app.run(port=args.port, debug=args.debug) return 0 except Exception as e: logger.error(e)