This commit is contained in:
Muayyad alsadi 2022-06-21 21:51:09 +03:00
parent 9eda56caf9
commit 06fc0715fe

View File

@ -1690,7 +1690,7 @@ class cmd_run: # pylint: disable=invalid-name,too-few-public-methods
wrapped._compose = self.compose wrapped._compose = self.compose
# Trim extra indentation at start of multiline docstrings. # Trim extra indentation at start of multiline docstrings.
wrapped.desc = self.cmd_desc or re.sub(r'^\s+', '', func.__doc__) wrapped.desc = self.cmd_desc or re.sub(r"^\s+", "", func.__doc__)
wrapped._parse_args = [] wrapped._parse_args = []
self.compose.commands[self.cmd_name] = wrapped self.compose.commands[self.cmd_name] = wrapped
return wrapped return wrapped