We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I extract task arguments directly from ARGV, beyond the -- string.
For example I do:
rake update_date -- _posts/xyz.markdown
And in the code I have the :update_date task extract the filename after --.
:update_date
--
But to prevent Rake from interpreting arguments beyond --, I have to rerun it with with_aplication.
with_aplication
unless $_args_filtered || ARGV.empty? $_args_filtered = true app_args = ARGV.dup.take_while{ |a| a != "--" } unless app_args.size == ARGV.size Dir.chdir Rake.original_dir Rake.with_application do |application| application.run(app_args) end exit end end
This is something I'd like to avoid if possible.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I extract task arguments directly from ARGV, beyond the -- string.
For example I do:
rake update_date -- _posts/xyz.markdown
And in the code I have the
:update_date
task extract the filename after--
.But to prevent Rake from interpreting arguments beyond
--
, I have to rerun it withwith_aplication
.This is something I'd like to avoid if possible.
The text was updated successfully, but these errors were encountered: