Commits

clach04  committed d0fa77c

Modified main() to behave the way I like.

  • Participants
  • Parent commits fdd5711

Comments (0)

Files changed (1)

File poachplatelib/package.py

 
         os.makedirs(self.libname)        
         create_file(fout(os.path.join(self.libname, '__init__.py')), '''#!/usr/bin/env python
+# -*- coding: us-ascii -*-
+# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
+#
 %(script_copyright)s
 
 import sys
 
 import meta
 
-def main(prog_args):
+def main(argv=None):
+    if argv is None:
+        argv = sys.argv
+
     parser = optparse.OptionParser(version=meta.__version__)
-    opt, args = parser.parse_args(prog_args)
+    opt, args = parser.parse_args(argv)
+    
+    return 0
 
 if __name__ == '__main__':
-    sys.exit(main(sys.argv))
+    sys.exit(main())
 
 ''' % {'script_copyright': script_copyright})