From 190392ea13f998fe298d48738131779f522d62e9 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 23 Jul 2012 21:39:31 +1200 Subject: Add a --nocraft option to pathod that turns off crafting. --- pathod | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pathod') diff --git a/pathod b/pathod index d2635ff5..0bb8da31 100755 --- a/pathod +++ b/pathod @@ -30,6 +30,10 @@ if __name__ == "__main__": "--noweb", dest='noweb', default=False, action="store_true", help='Disable web interface and API.' ) + parser.add_argument( + "--nocraft", dest='nocraft', default=False, action="store_true", + help='Disable response crafting. If anchors are specified, they still work.' + ) parser.add_argument( "--keyfile", dest='ssl_keyfile', default=None, type=str, help='SSL key file. If not specified, a default key is used.' @@ -85,7 +89,8 @@ if __name__ == "__main__": staticdir = args.staticdir, anchors = alst, sizelimit = sizelimit, - noweb = args.noweb + noweb = args.noweb, + nocraft = args.nocraft ) except pathod.PathodError, v: parser.error(str(v)) -- cgit v1.2.3