changeset 29:882b26fbfcd3

STUB: silvermirror/hg.py
author Jeff Hammel <k0scist@gmail.com>
date Fri, 31 Jan 2014 19:46:57 -0800
parents 03911cb46f53
children 19ee8dfe2325
files silvermirror/hg.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/silvermirror/hg.py
+++ b/silvermirror/hg.py
@@ -63,21 +63,21 @@ def repositories(url):
     return repos
 
 
 def main(args=sys.argv[1:]):
     """CLI"""
 
     # parse command line
     parser = argparse.ArgumentParser(description=__doc__)
-    parser.add_argument('host', dest='host',
+    parser.add_argument('host',
                       help="URL of mercurial repository index page")
     parser.add_argument('-d', '--directory', dest='directory',
-                      default=os.path.join(os.environ['HOME'], 'hg'),
-                      help="base directory to clone/update to [DEFAULT: %default]")
+                        default=os.path.join(os.environ['HOME'], 'hg'),
+                        help="base directory to clone/update to [DEFAULT: %(default)s]")
     parser.add_argument('--list', dest='list',
                       action='store_true', default=False,
                       help="list repositories and exit")
     options = parser.parse_args(args)
     if _import_error is not None:
         # XXX better error handling
         parser.error("Must have hglib and lxml package to use, sorry: {}".format(_import_error))