aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-26 10:44:22 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-26 10:44:22 -0400
commit35a6d9ba879f9276286d994b443e024541456d0e (patch)
tree2975d55e24758337e6f66a59db5b167b2fac48dd /klippy/gcode.py
parentc63754fc322eae70b281d849820c9c04f1464852 (diff)
downloadkutter-35a6d9ba879f9276286d994b443e024541456d0e.tar.gz
kutter-35a6d9ba879f9276286d994b443e024541456d0e.tar.xz
kutter-35a6d9ba879f9276286d994b443e024541456d0e.zip
gcode: Sort the order of commands in HELP
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index dbd0dbcb..ad9bd482 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -428,7 +428,7 @@ class GCodeParser:
if not self.is_printer_ready:
cmdhelp.append("Printer is not ready - not all commands available.")
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)
if desc is not None:
cmdhelp.append("%-10s: %s" % (cmd, desc))