From 4c4cc0e55f92b4099dc9c92fbe92680728253bab Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 16 Oct 2009 00:56:16 -0700 Subject: [PATCH] Handle a call to the command line with no arguments. --- lib/compass/commands/registry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass/commands/registry.rb b/lib/compass/commands/registry.rb index d073bcb6..ac3654d9 100644 --- a/lib/compass/commands/registry.rb +++ b/lib/compass/commands/registry.rb @@ -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