aboutsummaryrefslogtreecommitdiffstats
path: root/templating/templating.py
diff options
context:
space:
mode:
authorslinderud <simen.linderud@gmail.com>2019-12-03 20:23:36 +0100
committerslinderud <simen.linderud@gmail.com>2019-12-03 20:23:36 +0100
commit920fa648837152255c0937b03ec373c13830da42 (patch)
tree71dd785d42b9b6a58b760c0ccee8e9c2a2c085cb /templating/templating.py
parentd0f6e569304efd0a98ca6810b5f26e4f0293112b (diff)
Template: bugfixes on templating.py. Added test template that uses API and created a readme
Diffstat (limited to 'templating/templating.py')
-rwxr-xr-xtemplating/templating.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/templating/templating.py b/templating/templating.py
index 140745f..603b370 100755
--- a/templating/templating.py
+++ b/templating/templating.py
@@ -88,12 +88,13 @@ parser.add_argument("-h", "--host", type=str, default="127.0.0.1", help="host ad
parser.add_argument("-p", "--port", type=int, default=8080, help="host port")
parser.add_argument("-d", "--debug", action="store_true", help="enable debug mode")
parser.add_argument("-s", "--server", type=str, default="http://localhost:80", help="gondul server address")
-parser.add_argument("-x", "--timeout", type=int, default=1, help="gondul server timeout")
+parser.add_argument("-x", "--timeout", type=int, default=2, help="gondul server timeout")
args = parser.parse_args()
env.loader.searchpath = args.templates
if not sys.argv[1:]:
parser.print_help()
+ sys.exit(1)
app.run(host=args.host, port=args.port, debug=args.debug)