Skip to content

Commit 45b5e7b

Browse files
Add missing method to _ManHelpFormatter (#5577)
Co-authored-by: Daniël van Noord <[email protected]>
1 parent 996da9e commit 45b5e7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pylint/config/man_help_formatter.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import time
77

88

9-
# pylint: disable=abstract-method; by design?
109
class _ManHelpFormatter(optparse.HelpFormatter):
1110
def __init__(
1211
self, indent_increment=0, max_help_position=24, width=79, short_first=0
@@ -107,6 +106,10 @@ def format_tail(pkginfo):
107106
"""
108107
return tail
109108

109+
def format_usage(self, usage):
110+
"""Taken from optparse.IndentedHelpFormatter"""
111+
return f"Usage: {usage}\n"
112+
110113

111114
def _generate_manpage(optparser, pkginfo, section=1, stream=sys.stdout, level=0):
112115
formatter = _ManHelpFormatter()

0 commit comments

Comments
 (0)