changeset 3:8a5d2083fbd1

adding stub for main()
author k0s <k0scist@gmail.com>
date Fri, 02 Oct 2009 19:04:19 -0400
parents 0d9094bb98b0
children aeb8ddd4a36f
files silvermirror/hg.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/silvermirror/hg.py	Fri Oct 02 19:00:46 2009 -0400
+++ b/silvermirror/hg.py	Fri Oct 02 19:04:19 2009 -0400
@@ -4,7 +4,9 @@
 """
 
 import os
+import sys
 from mercurial import commands, hg, ui
+from optparse import OptionParser
 
 def update(host, path):
     """
@@ -35,3 +37,12 @@
         except mercurial.repo.RepoError:
             pass
     return repos
+
+def main(args=sys.argv[1:]):
+    parser = OptionParser()
+    options, args = parser.parse_args(args)
+    if len(args) > 1:
+        raise NotImplementedError
+
+if __name__ == '__main__':
+    main()