From eb1f2c3fc40ccfc0db60776412add6a35af93bf9 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 24 Jul 2012 21:51:43 +1200 Subject: Add option to specify craft anchor point. --- pathod | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pathod') diff --git a/pathod b/pathod index a5cc02ca..df044ae7 100755 --- a/pathod +++ b/pathod @@ -10,6 +10,10 @@ if __name__ == "__main__": "-a", dest='anchors', default=[], type=str, action="append", metavar="ANCHOR", help='Add an anchor. Specified as a string with the form pattern=pagespec' ) + parser.add_argument( + "-c", dest='craftanchor', default="/p/", type=str, + help='Anchorpoint for URL crafting commands.' + ) parser.add_argument( "-d", dest='staticdir', default=None, type=str, help='Directory for static files.' @@ -89,6 +93,7 @@ if __name__ == "__main__": try: pd = pathod.Pathod( (args.address, args.port), + craftanchor = args.craftanchor, ssloptions = ssl, staticdir = args.staticdir, anchors = alst, -- cgit v1.2.3