We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df98e2a commit ee7da74Copy full SHA for ee7da74
1 file changed
mx_commands.py
@@ -126,9 +126,13 @@ def command_function(self):
126
return self._command_function
127
128
def get_doc(self):
129
+ doc = self.command_function.__doc__
130
+ format_args = []
131
+ if self.usage_msg:
132
+ format_args.append(self.usage_msg)
133
if self.doc_function:
- return doc_function()
- return ''
134
+ format_args.append(self.doc_function())
135
+ return doc.format(*format_args)
136
137
def __call__(self, *args, **kwargs):
138
for callback in self._mx_commands.command_before_callbacks:
0 commit comments