diff commitwatcher/main.py @ 0:bdc039cb1f2e

wth
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 24 Sep 2013 13:13:35 -0700
parents
children 4cb3971d9d9d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/commitwatcher/main.py	Tue Sep 24 13:13:35 2013 -0700
@@ -0,0 +1,32 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+"""
+new service to monitor mozbase commits
+"""
+
+import optparse
+import os
+import subprocess
+import sys
+
+def add_options(parser):
+    """add options to the OptionParser instance"""
+
+def main(args=sys.argv[1:]):
+
+    # parse command line options
+    usage = '%prog [options] ...'
+    class PlainDescriptionFormatter(optparse.IndentedHelpFormatter):
+        """description formatter for console script entry point"""
+        def format_description(self, description):
+            if description:
+                return description.strip() + '\n'
+            else:
+                return ''
+    parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter())
+    options, args = parser.parse_args(args)
+
+if __name__ == '__main__':
+  main()
+