Skip to content

Commit

Permalink
Fixed to break capistrano3.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 25, 2017
1 parent e7ea2d1 commit 92146b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ def run(argv = ARGV)
def init(app_name="rake", argv = ARGV)
standard_exception_handling do
@name = app_name
args = handle_options argv
begin
args = handle_options argv
rescue ArgumentError
# Backword compatibility for capistrano
args = handle_options
end
collect_command_line_tasks(args)
end
end
Expand Down

0 comments on commit 92146b2

Please sign in to comment.