Skip to content

Commit 92146b2

Browse files
committed
Fixed to break capistrano3.
1 parent e7ea2d1 commit 92146b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/rake/application.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ def run(argv = ARGV)
8888
def init(app_name="rake", argv = ARGV)
8989
standard_exception_handling do
9090
@name = app_name
91-
args = handle_options argv
91+
begin
92+
args = handle_options argv
93+
rescue ArgumentError
94+
# Backword compatibility for capistrano
95+
args = handle_options
96+
end
9297
collect_command_line_tasks(args)
9398
end
9499
end

0 commit comments

Comments
 (0)