diff options
-rw-r--r-- | pylint/config/man_help_formatter.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pylint/config/man_help_formatter.py b/pylint/config/man_help_formatter.py index b265d654c..e8e019824 100644 --- a/pylint/config/man_help_formatter.py +++ b/pylint/config/man_help_formatter.py @@ -6,7 +6,6 @@ import sys import time -# pylint: disable=abstract-method; by design? class _ManHelpFormatter(optparse.HelpFormatter): def __init__( self, indent_increment=0, max_help_position=24, width=79, short_first=0 @@ -107,6 +106,10 @@ Please report bugs on the project\'s mailing list: """ return tail + def format_usage(self, usage): + """Taken from optparse.IndentedHelpFormatter""" + return f"Usage: {usage}\n" + def _generate_manpage(optparser, pkginfo, section=1, stream=sys.stdout, level=0): formatter = _ManHelpFormatter() |