From 5fce487ba8e45c75d3572c9dc71640a59af7543d Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 18 Jan 2009 17:41:20 -0800 Subject: [PATCH] Don't reference ARGV in the exec module. This makes testing easier. --- lib/compass/exec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compass/exec.rb b/lib/compass/exec.rb index bf2308de..054b40e3 100644 --- a/lib/compass/exec.rb +++ b/lib/compass/exec.rb @@ -68,8 +68,8 @@ module Compass def parse! self.opts = OptionParser.new(&method(:set_opts)) self.opts.parse!(self.args) - if ARGV.size > 0 - self.options[:project_name] = trim_trailing_separator(ARGV.shift) + if self.args.size > 0 + self.options[:project_name] = trim_trailing_separator(self.args.shift) end self.options[:command] ||= self.options[:project_name] ? :create_project : :update_project self.options[:environment] ||= :production