Skip to content

Commit

Permalink
Change command for the rake task with arguments to a style that can a…
Browse files Browse the repository at this point in the history
…lso be used in zsh
  • Loading branch information
ydah committed Jun 6, 2022
1 parent fa78663 commit def56cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/new_cop.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'rubocop'
desc 'Generate a new cop template'
task :new_cop, [:cop] do |_task, args|
cop_name = args.fetch(:cop) do
warn 'usage: bundle exec rake new_cop[Department/Name]'
warn "usage: bundle exec rake 'new_cop[Department/Name]'"
exit!
end

Expand Down
2 changes: 1 addition & 1 deletion tasks/prof.rake
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace :prof do
desc 'Check a particular method by walking through the callstack'
task :walk, [:method] => :run_if_needed do |_task, args|
method = args.fetch(:method) do
warn 'usage: bundle exec rake walk[Class#method]'
warn "usage: bundle exec rake 'walk[Class#method]'"
exit!
end
cmd = "stackprof #{dump_path} --walk --method '#{method}'"
Expand Down

0 comments on commit def56cb

Please sign in to comment.