Sort subcommands listing

This commit is contained in:
Mitchell Hashimoto 2010-04-13 16:23:02 -07:00
parent 453f4774e4
commit 0a1f2158f7
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ module Vagrant
puts "Usage: vagrant SUBCOMMAND ...\n\n"
puts "Supported commands:"
subcommands.each do |key, klass|
subcommands.keys.sort.each do |key|
klass = subcommands[key]
puts "#{' ' * 4}#{key.ljust(20)}#{klass.description}"
end