Mercurial > hg > silvermirror
comparison silvermirror/hg.py @ 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 |
comparison
equal
deleted
inserted
replaced
28:03911cb46f53 | 29:882b26fbfcd3 |
---|---|
66 def main(args=sys.argv[1:]): | 66 def main(args=sys.argv[1:]): |
67 """CLI""" | 67 """CLI""" |
68 | 68 |
69 # parse command line | 69 # parse command line |
70 parser = argparse.ArgumentParser(description=__doc__) | 70 parser = argparse.ArgumentParser(description=__doc__) |
71 parser.add_argument('host', dest='host', | 71 parser.add_argument('host', |
72 help="URL of mercurial repository index page") | 72 help="URL of mercurial repository index page") |
73 parser.add_argument('-d', '--directory', dest='directory', | 73 parser.add_argument('-d', '--directory', dest='directory', |
74 default=os.path.join(os.environ['HOME'], 'hg'), | 74 default=os.path.join(os.environ['HOME'], 'hg'), |
75 help="base directory to clone/update to [DEFAULT: %default]") | 75 help="base directory to clone/update to [DEFAULT: %(default)s]") |
76 parser.add_argument('--list', dest='list', | 76 parser.add_argument('--list', dest='list', |
77 action='store_true', default=False, | 77 action='store_true', default=False, |
78 help="list repositories and exit") | 78 help="list repositories and exit") |
79 options = parser.parse_args(args) | 79 options = parser.parse_args(args) |
80 if _import_error is not None: | 80 if _import_error is not None: |