From: "rosenfeld (Rodrigo Rosenfeld Rosas)" Date: 2012-10-19T09:16:55+09:00 Subject: [ruby-core:48074] [ruby-trunk - Bug #6548] Rake doesn't ignore arguments after -- Issue #6548 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas). Here is my use case. I've developed some gems for testing client-side code, including oojs. I've created an example on how to use it even for non-Ruby/Rails applications. Then I created a task like "rake oojs:spec -- --name=shopping_cart" https://github.com/rosenfeld/oojs_assets_enabler In the original oojs gem, there is actually a generator for it: https://github.com/rosenfeld/oojs rails g oojs:spec shopping_cart For non-Ruby projects, I'd like to be able to do something similar using rake, but I would like to be able to call it like: rake oojs:spec -- shopping_cart But this is not possible. What is the expected way to provide some arguments to a rake task not using options? ---------------------------------------- Bug #6548: Rake doesn't ignore arguments after -- https://bugs.ruby-lang.org/issues/6548#change-31025 Author: rosenfeld (Rodrigo Rosenfeld Rosas) Status: Closed Priority: Normal Assignee: drbrain (Eric Hodel) Category: lib Target version: 2.0.0 ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux] I've created this issue first in GitHub before I realized that Rake is now part of stdlib: https://github.com/jimweirich/rake/issues/115 I'll copy it here: rake some_task -- some_arg Raises an error after running some_task: Don't know how to build task some_arg. -- http://bugs.ruby-lang.org/