help="Enable debug messages")
parser.add_argument("-M", "-modulename", "--modulename",
- default="Kernel API",
help="Allow setting a module name at the output.")
parser.add_argument("-l", "-enable-lineno", "--enable_lineno",
``modulename``
Defines the module name to be used at the troff ``.TH`` output.
- This argument is mandatory.
+ This argument is optional. If not specified, it will be filled
+ with the directory which contains the documented file.
``section``
Usually a numeric value from 0 to 9, but man pages also accept
title = name.strip()
module = self.modulename(args)
- self.data += f'.TH "{name}" {self.section} "{self.date}" '
- self.data += f'"{self.modulename}" "{self.manual}"\n'
+ self.data += f'.TH "{title}" {self.section} "{self.date}" '
+ self.data += f'"{module}" "{self.manual}"\n'
def __init__(self, modulename=None, section="9", manual="Kernel API Manual"):
"""