Skip to content
Snippets Groups Projects
Commit aea05082 authored by red-agent's avatar red-agent
Browse files

Code style fix

parent c6dd2d66
No related branches found
No related tags found
No related merge requests found
...@@ -62,15 +62,14 @@ class StandardCommonCommands(CommandContainer): ...@@ -62,15 +62,14 @@ class StandardCommonCommands(CommandContainer):
documentation = _(command.extract_documentation()) documentation = _(command.extract_documentation())
usage = generate_usage(command) usage = generate_usage(command)
text = str() text = []
if documentation: if documentation:
text += documentation text.append(documentation)
if command.usage: if command.usage:
text += ('\n\n' + usage) if text else usage text.append(usage)
return text return '\n\n'.join(text)
elif all: elif all:
for command in self.list_commands(): for command in self.list_commands():
names = ', '.join(command.names) names = ', '.join(command.names)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment