diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-04-26 10:44:22 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-04-26 10:44:22 -0400 |
commit | 35a6d9ba879f9276286d994b443e024541456d0e (patch) | |
tree | 2975d55e24758337e6f66a59db5b167b2fac48dd /klippy/gcode.py | |
parent | c63754fc322eae70b281d849820c9c04f1464852 (diff) | |
download | kutter-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.py | 2 |
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)) |