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