changeset 25:cedf9a0e3d61

STUB: silvermirror/hg.py
author Jeff Hammel <k0scist@gmail.com>
date Fri, 31 Jan 2014 08:04:22 -0800
parents 183cee927d8b
children 16a12d660609
files silvermirror/hg.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/silvermirror/hg.py
+++ b/silvermirror/hg.py
@@ -62,17 +62,18 @@ def repositories(url):
     repos = [i.text_content() for i in tds]
     return repos
 
 
 def main(args=sys.argv[1:]):
     parser = OptionParser()
     parser.add_option('-H', '--host', dest='host')
     parser.add_option('-d', '--directory', dest='directory',
-                      default=os.path.join(os.environ['HOME'], 'hg'))
+                      default=os.path.join(os.environ['HOME'], 'hg'),
+                      help="directory to clone/update to")
     parser.add_option('--list', dest='list',
                       action='store_true', default=False)
     options, args = parser.parse_args(args)
     if not requirements_fulfilled:
         # Hack; this should all be better o_O
         parser.error("Must have mercurial and lxml packages to use, sorry")
     if not options.host:
         parser.print_usage()