Skip to content

Commit 44311eb

Browse files
committed
Allow spaces between arguments in Rake tasks
1 parent 31afc0d commit 44311eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/rake/application.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ def init(app_name='rake')
8484
standard_exception_handling do
8585
@name = app_name
8686
args = handle_options
87+
if args.size > 1 && args.last =~ /.*\]/
88+
clean_args = ""
89+
args.each{ |arg| clean_args += arg }
90+
args = [clean_args]
91+
end
8792
collect_command_line_tasks(args)
8893
end
8994
end

0 commit comments

Comments
 (0)