diff --git a/wake/cli/detect.py b/wake/cli/detect.py index 025ecb0e4..802be958c 100644 --- a/wake/cli/detect.py +++ b/wake/cli/detect.py @@ -149,9 +149,9 @@ def detector_collisions(self) -> FrozenSet[Tuple[str, str, str]]: return frozenset(self._detector_collisions) def format_help(self, ctx: click.Context, formatter: click.HelpFormatter) -> None: - self.formatter.config.commands_panel_title = "Detectors" + formatter.config.commands_panel_title = "Detectors" super().format_help(ctx, formatter) - self.formatter.config.commands_panel_title = "Commands" + formatter.config.commands_panel_title = "Commands" def add_verified_plugin_path(self, path: Path) -> None: import tomli diff --git a/wake/cli/print.py b/wake/cli/print.py index 8208ea989..762aba2fa 100644 --- a/wake/cli/print.py +++ b/wake/cli/print.py @@ -122,9 +122,9 @@ def printer_collisions(self) -> FrozenSet[Tuple[str, str, str]]: return frozenset(self._printer_collisions) def format_help(self, ctx: click.Context, formatter: click.HelpFormatter) -> None: - self.formatter.config.commands_panel_title = "Printers" + formatter.config.commands_panel_title = "Printers" super().format_help(ctx, formatter) - self.formatter.config.commands_panel_title = "Commands" + formatter.config.commands_panel_title = "Commands" def add_verified_plugin_path(self, path: Path) -> None: import tomli