diff makeitso/python_package/{{package}}/{{main}}.py @ 195:3cb66c9e5ce8

STUB: makeitso/python_package/{{package}}/{{main}}.py
author Jeff Hammel <k0scist@gmail.com>
date Fri, 16 May 2014 23:59:10 -0700
parents 1bcf60bcc455
children d25ca7099df8
line wrap: on
line diff
--- a/makeitso/python_package/{{package}}/{{main}}.py	Fri May 16 13:53:28 2014 -0700
+++ b/makeitso/python_package/{{package}}/{{main}}.py	Fri May 16 23:59:10 2014 -0700
@@ -11,18 +11,11 @@
 import subprocess
 import sys
 
-__all__ = ['main']
+# module globals
+__all__ = ['main', 'Parser']
 here = os.path.dirname(os.path.realpath(__file__))
 string = (str, unicode)
 
-class PlainDescriptionFormatter(optparse.IndentedHelpFormatter):
-    """description formatter for console script entry point"""
-    def format_description(self, description):
-        if description:
-            return description.strip() + '\n'
-        else:
-            return ''
-
 
 class Parser(argparse.ArgumentParser):
     """CLI option parser"""
@@ -34,7 +27,7 @@
     """CLI"""
 
     # parse command line options
-    parser = Parser()
+    parser = Parser(description=__doc__)
     options = parser.parse_args(args)
 
 if __name__ == '__main__':