From: Avery Pennarun Date: Fri, 5 Feb 2010 22:13:35 +0000 (-0500) Subject: bup.py: list subcommands in alphabetical order. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=656722fca893f1edf72ff91c58147d9fade48c54;p=packages%2Fb%2Fbup.git bup.py: list subcommands in alphabetical order. We were forgetting to sort the output of listdir(). --- diff --git a/bup.py b/bup.py index e88b7b4..56c6cd0 100755 --- a/bup.py +++ b/bup.py @@ -11,7 +11,7 @@ def log(s): def usage(): log('Usage: %s \n\n' % exe) log('Available subcommands:\n') - for c in os.listdir(exepath): + for c in sorted(os.listdir(exepath)): if c.startswith('bup-') and c.find('.') < 0: log('\t%s\n' % c[4:]) sys.exit(99)