changeset 23:6a7fd9f83554

wip
author Jeff Hammel <k0scist@gmail.com>
date Sun, 10 May 2015 21:01:34 -0700
parents 1b077cb84be5
children 099f270654ae
files example/example.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()