changeset 5:660c74f33ed2

adding more to skeleton for main program
author k0s <k0scist@gmail.com>
date Sat, 03 Oct 2009 18:10:11 -0400
parents aeb8ddd4a36f
children c999b2f16159
files silvermirror/hg.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/silvermirror/hg.py	Fri Oct 02 19:06:12 2009 -0400
+++ b/silvermirror/hg.py	Sat Oct 03 18:10:11 2009 -0400
@@ -40,9 +40,11 @@
 
 def main(args=sys.argv[1:]):
     parser = OptionParser()
+    parser.add_option('-H', '--host', dest='host')
     options, args = parser.parse_args(args)
-    if len(args) > 1:
-        raise NotImplementedError
+    if len(args) != 1:
+        parser.print_usage()
+        parser.exit()
 
 if __name__ == '__main__':
     main()