From 4bc4597e0106d2ed464ea3a8cdb048e2cd65fc59 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 13 Apr 2010 23:25:50 -0700 Subject: [PATCH] When listing subcommands, subcommand without descriptions are ignored --- lib/vagrant/commands/base.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vagrant/commands/base.rb b/lib/vagrant/commands/base.rb index 554d1bbe9..701721f47 100644 --- a/lib/vagrant/commands/base.rb +++ b/lib/vagrant/commands/base.rb @@ -58,6 +58,8 @@ module Vagrant puts "Supported commands:" subcommands.keys.sort.each do |key| klass = subcommands[key] + next if klass.description.empty? + puts "#{' ' * 4}#{key.ljust(20)}#{klass.description}" end