When listing subcommands, subcommand without descriptions are ignored

This commit is contained in:
Mitchell Hashimoto 2010-04-13 23:25:50 -07:00
parent 575a9f1021
commit 4bc4597e01
1 changed files with 2 additions and 0 deletions

View File

@ -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