Added handling for more edge cases

pull/8/head
sgoudham 4 years ago
parent e2e0e4261b
commit 93f7265f68

@ -399,7 +399,13 @@ class HelpPaginator(Pages):
else: else:
self.title = f"{command.qualified_name} | {aliases}" self.title = f"{command.qualified_name} | {aliases}"
else: else:
if command.usage:
self.title = f"{command.qualified_name} | {command.signature}"
elif command.signature:
self.title = f"{command.qualified_name} `{command.signature}`" self.title = f"{command.qualified_name} `{command.signature}`"
else:
self.title = f"{command.qualified_name}"
else: else:
if command.aliases: if command.aliases:
aliases = " | ".join(command.aliases) aliases = " | ".join(command.aliases)

Loading…
Cancel
Save