packages pyinstaller-1.4.svn20110204-help.patch
      Pages: < 1 >  DOWNLOAD      
--- trunk/PyInstaller/lib/optik/help.py.orig	2010-04-28 16:31:40.000000000 +0200
+++ trunk/PyInstaller/lib/optik/help.py	2010-04-28 16:31:46.000000000 +0200
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 """optik.help
 
 Provides HelpFormatter and subclasses -- used by OptionParser
--- trunk/PyInstaller/lib/optik/option_parser.py.orig	2010-04-29 15:04:20.000000000 +0200
+++ trunk/PyInstaller/lib/optik/option_parser.py	2010-04-29 15:04:30.000000000 +0200
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 """optik.option_parser
 
 Provides the OptionParser and Values classes.
@@ -416,7 +417,7 @@
     def _add_help_option(self):
         self.add_option("-h", "--help",
                         action="help",
-                        help=_("show this help message and exit"))
+                        help=_("show help message and exit"))
 
     def _add_version_option(self):
         self.add_option("--version",
@@ -793,8 +794,10 @@
             result.append(OptionContainer.format_option_help(self, formatter))
             result.append("\n")
         for group in self.option_groups:
+            formatter.dedent()
             result.append(group.format_help(formatter))
             result.append("\n")
+            formatter.indent()
         formatter.dedent()
         # Drop the last "\n", or the header if no options or option groups:
         return string.join(result[:-1], "")