Bugfix print help to file.

develop
Самоукин Алексей 13 years ago
parent d5e664ad0a
commit 50b513d303

@ -334,6 +334,12 @@ is used in conjunction with the option '-v --vars'")
epilog=epilog)
self.formatter._long_opt_fmt = "%s %s"
def _get_encoding(self, file):
encoding = getattr(file, "encoding", None)
if not encoding:
encoding = "UTF-8"
return encoding
def get_usage(self):
"""Replace standard help header"""
if self.usage:

Loading…
Cancel
Save