Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 206b427

Browse files
committed
sort help by command name
1 parent 09a7655 commit 206b427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geeknote/argparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def printHelp(self):
680680
if self.CMD is None or self.CMD not in self.COMMANDS:
681681
tab = len(max(self.COMMANDS.keys(), key=len))
682682
out.printLine("Available commands:")
683-
for cmd in self.COMMANDS:
683+
for cmd in sorted(self.COMMANDS):
684684
out.printLine(
685685
"%s : %s" % (cmd.rjust(tab, " "), self.COMMANDS[cmd]["help"])
686686
)

0 commit comments

Comments
 (0)