sort commands by name

This commit is contained in:
Romain Bignon 2011-05-08 17:26:33 +02:00
commit 1288af8e93

View file

@ -76,7 +76,7 @@ class ManpageHelpFormatter(optparse.HelpFormatter):
if len(cmds) == 0:
continue
s += '.SH %s COMMANDS\n' % section.upper()
for cmd in cmds:
for cmd in sorted(cmds):
s += '.TP\n'
h = cmd.split('\n')
if ' ' in h[0]: