# HG changeset patch # User Jeff Hammel # Date 1431316894 25200 # Node ID 6a7fd9f8355427b2d2b806f1ef36eeab1d1146a2 # Parent 1b077cb84be5c146a66c1fb348840d05cd44733d wip diff -r 1b077cb84be5 -r 6a7fd9f83554 example/example.py --- a/example/example.py Sun May 10 20:52:25 2015 -0700 +++ b/example/example.py Sun May 10 21:01:34 2015 -0700 @@ -32,7 +32,11 @@ app = SVGSiteMap(app, file=inifile, output=svgfile) return app -def main(args=sys.argv[1:]) +def main(args=sys.argv[1:]): + """CLI""" + + # parse command line options + parser = argparse.ArgumentParser(description=__doc__) server = simple_server.make_server(host='0.0.0.0', port=int(54321), app=factory()) server.serve_forever()