# HG changeset patch # User k0s # Date 1254524659 14400 # Node ID 8a5d2083fbd164d164c5cf5f3dcf02e1d90dfb1b # Parent 0d9094bb98b04ef13b3a3ba49861d75aa2443b7d adding stub for main() diff -r 0d9094bb98b0 -r 8a5d2083fbd1 silvermirror/hg.py --- 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()