Skip to content

Commit

Permalink
Merge pull request #199 from grosi/develop
Browse files Browse the repository at this point in the history
handle error "project:xxx is not a rake task" by filtering consumed commands from the ARGV array before passing to ceedling local. (Thanks @grosi for your help and your persistence!)
  • Loading branch information
mvandervoord authored Sep 12, 2017
2 parents d4d4e2e + c65bcc0 commit d2c6606
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/ceedling
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ else
#create our default meta-runner option set
options = {
:pretest => nil,
:args => [],
:add_path => [],
:path_connector => (platform == :mswin) ? ";" : ":",
:graceful_fail => false,
Expand Down Expand Up @@ -244,7 +245,7 @@ else
when /^project:(\w+)/
ENV['CEEDLING_USER_PROJECT_FILE'] = "#{$1}.yml"
else
#nothing
options[:args].push(v)
end
end

Expand Down Expand Up @@ -282,7 +283,7 @@ else
task :default => options[:default_tasks]

# Run our Tasks!
Rake.application.collect_command_line_tasks(ARGV)
Rake.application.collect_command_line_tasks(options[:args])
Rake.application.top_level
end
end
Expand Down

0 comments on commit d2c6606

Please sign in to comment.