gcode: Sort the order of commands in HELP
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c63754fc32
commit
35a6d9ba87
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue