diff makeitso/python_package/{{package}}/main.py @ 159:cfd4f1e91090

wip
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 30 Jul 2013 15:20:38 -0700
parents 386a44a52139
children
line wrap: on
line diff
--- a/makeitso/python_package/{{package}}/main.py	Tue Jul 30 11:08:01 2013 -0700
+++ b/makeitso/python_package/{{package}}/main.py	Tue Jul 30 15:20:38 2013 -0700
@@ -1,16 +1,22 @@
 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
 
 """
 {{description}}
 """
 
+import optparse
+import os
+import subprocess
 import sys
-import optparse
+
+def add_options(parser):
+    """add {{package}} options to an OptionParser instance"""
 
 def main(args=sys.argv[1:]):
 
     # parse command line options
-    usage = '%prog [options]'
+    usage = '%prog [options] ...'
     class PlainDescriptionFormatter(optparse.IndentedHelpFormatter):
         """description formatter for console script entry point"""
         def format_description(self, description):