Mercurial > hg > silvermirror
comparison silvermirror/hg.py @ 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 |
comparison
equal
deleted
inserted
replaced
24:183cee927d8b | 25:cedf9a0e3d61 |
---|---|
65 | 65 |
66 def main(args=sys.argv[1:]): | 66 def main(args=sys.argv[1:]): |
67 parser = OptionParser() | 67 parser = OptionParser() |
68 parser.add_option('-H', '--host', dest='host') | 68 parser.add_option('-H', '--host', dest='host') |
69 parser.add_option('-d', '--directory', dest='directory', | 69 parser.add_option('-d', '--directory', dest='directory', |
70 default=os.path.join(os.environ['HOME'], 'hg')) | 70 default=os.path.join(os.environ['HOME'], 'hg'), |
71 help="directory to clone/update to") | |
71 parser.add_option('--list', dest='list', | 72 parser.add_option('--list', dest='list', |
72 action='store_true', default=False) | 73 action='store_true', default=False) |
73 options, args = parser.parse_args(args) | 74 options, args = parser.parse_args(args) |
74 if not requirements_fulfilled: | 75 if not requirements_fulfilled: |
75 # Hack; this should all be better o_O | 76 # Hack; this should all be better o_O |