gcode: Sort the order of commands in HELP

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-04-26 10:44:22 -04:00
parent c63754fc32
commit 35a6d9ba87
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ class GCodeParser:
if not self.is_printer_ready: if not self.is_printer_ready:
cmdhelp.append("Printer is not ready - not all commands available.") cmdhelp.append("Printer is not ready - not all commands available.")
cmdhelp.append("Available extended commands:") cmdhelp.append("Available extended commands:")
for cmd in self.gcode_handlers: for cmd in sorted(self.gcode_handlers):
desc = getattr(self, 'cmd_'+cmd+'_help', None) desc = getattr(self, 'cmd_'+cmd+'_help', None)
if desc is not None: if desc is not None:
cmdhelp.append("%-10s: %s" % (cmd, desc)) cmdhelp.append("%-10s: %s" % (cmd, desc))