mirror of
https://github.com/beetbox/beets.git
synced 2026-02-12 18:31:48 +01:00
Sort help output
Commands are now listed in sorted order. (With Python's hash randomization, the order was changing on every execution!)
This commit is contained in:
parent
3cf015606d
commit
36b26f77e7
1 changed files with 1 additions and 0 deletions
|
|
@ -724,6 +724,7 @@ class SubcommandsOptionParser(optparse.OptionParser):
|
|||
disp_names = []
|
||||
help_position = 0
|
||||
subcommands = [c for c in self.subcommands if not c.hide]
|
||||
subcommands.sort(key=lambda c: c.name)
|
||||
for subcommand in subcommands:
|
||||
name = subcommand.name
|
||||
if subcommand.aliases:
|
||||
|
|
|
|||
Loading…
Reference in a new issue