Handle a call to the command line with no arguments.

This commit is contained in:
Chris Eppstein 2009-10-16 00:56:16 -07:00
parent 8b5868ca00
commit 4c4cc0e55f

View File

@ -10,7 +10,7 @@ module Compass::Commands
end
def command_exists?(name)
@commands ||= Hash.new
@commands.has_key?(name.to_sym)
name && @commands.has_key?(name.to_sym)
end
def all
@commands.keys