Skip to content

Commit c399d18

Browse files
Filter other commands by name instead of type
Previously, a command like craft_appplication.command.TestCommand, which inherits from PackCommand, would omit the parent command in the "see also" section.
1 parent e75f8ef commit c399d18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

craft_cli/helptexts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def get_command_help(
475475
else:
476476
raise RuntimeError("Internal inconsistency in commands groups")
477477
other_command_names = [
478-
c.name for c in command_group.commands if not isinstance(command, c)
478+
c.name for c in command_group.commands if c.name != command.name
479479
]
480480

481481
if output_format == OutputFormat.markdown:

0 commit comments

Comments
 (0)