'> /help',
     '0 # commands available in this window:',
     '0 #   /connect HOST_PORT [NICKNAME_PW] [REALNAME]',
-    '0 #   /help ',
-    '0 #   /list ',
-    '0 #   /prompt_enter ',
-    '0 #   /quit ',
+    '0 #   /help',
+    '0 #   /list',
+    '0 #   /prompt_enter',
+    '0 #   /quit',
     '0 #   /window TOWARDS',
     '0 #   /window.history.scroll DIRECTION',
-    '0 #   /window.paste ',
-    '0 #   /window.prompt.backspace ',
+    '0 #   /window.paste',
+    '0 #   /window.prompt.backspace',
     '0 #   /window.prompt.move_cursor DIRECTION',
     '0 #   /window.prompt.scroll DIRECTION',
     '> /list',
 
         self._log('commands available in this window:')
         to_log = []
         for cmd_name, cmd_data in self._commands.items():
-            args = []
+            to_print = [cmd_name]
             for idx, arg in enumerate(cmd_data[2]):
                 arg = arg.upper()
                 if idx >= cmd_data[1]:
                     arg = f'[{arg}]'
-                args += [arg]
-            to_log += [f'{cmd_name} {" ".join(args)}']
+                to_print += [arg]
+            to_log += [' '.join(to_print)]
         for item in sorted(to_log):
             self._log(f'  /{item}')