From 0a1f2158f71c717afa9930aead382d58cbdfb54d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 13 Apr 2010 16:23:02 -0700 Subject: [PATCH] Sort subcommands listing --- lib/vagrant/commands/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/commands/base.rb b/lib/vagrant/commands/base.rb index 66027ef47..554d1bbe9 100644 --- a/lib/vagrant/commands/base.rb +++ b/lib/vagrant/commands/base.rb @@ -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