diff options
| author | 2018-02-13 17:33:41 +0000 | |
|---|---|---|
| committer | 2018-02-13 17:33:41 +0000 | |
| commit | 252fa75f40d8f1a5c0f0d45b98b592d238933b54 (patch) | |
| tree | ebf7a5e2eef86c427a62314e5db78283007bc27a | |
| parent | fixed styling (again) (diff) | |
changed the way command names are shown (due to the change in command names for the command wrappers)
| -rw-r--r-- | bot/formatter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/formatter.py b/bot/formatter.py index fe97b550a..d3dd88349 100644 --- a/bot/formatter.py +++ b/bot/formatter.py @@ -29,7 +29,7 @@ class Formatter(HelpFormatter): # skip aliases continue - entry = " {0:<{width}} # {1}".format(name, command.short_doc, width=max_width) + entry = " {0}{1:<{width}} # {2}".format(HELP_PREFIX, name, command.short_doc, width=max_width) shortened = self.shorten(entry) self._paginator.add_line(shortened) @@ -56,7 +56,7 @@ class Formatter(HelpFormatter): if isinstance(self.command, Command): # strip the command of bot. and () - stripped_command = self.command.name.replace(HELP_PREFIX, "").replace("()", "") + stripped_command = self.command.name.replace("()", "") # getting args using the handy inspect module argspec = getfullargspec(self.command.callback) arguments = formatargspec(*argspec) |