From 8ac48a03055d28ede7e13ad708787f881be2ba73 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 23 Jan 2020 15:22:03 -0800 Subject: [PATCH] Add debug flag to run command --- amanuensis/cli/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amanuensis/cli/server.py b/amanuensis/cli/server.py index 69c4c52..db6fede 100644 --- a/amanuensis/cli/server.py +++ b/amanuensis/cli/server.py @@ -50,6 +50,7 @@ def command_generate_secret(args): @add_argument("-a", "--address", default="127.0.0.1") @add_argument("-p", "--port", default="5000") +@add_argument("--debug", action="store_true") def command_run(args): """ Run the default Flask server @@ -63,7 +64,7 @@ def command_run(args): if get("secret_key") is None: logger.error("Can't run server without a secret_key. Run generate-secret first") return -1 - app.run(host=args.address, port=args.port) + app.run(host=args.address, port=args.port, debug=args.debug) @add_argument("--get", metavar="PATHSPEC", dest="get",