Skip to content

Commit

Permalink
Merge pull request #204 from hectcastro/jruby-argument-handling
Browse files Browse the repository at this point in the history
Fixes issues with handling incorrect number of command arguments with JRuby
  • Loading branch information
wycats committed Dec 4, 2011
2 parents 21a9822 + 33490a5 commit b2be097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor/task.rb
Expand Up @@ -87,7 +87,7 @@ def local_method?(instance, name)
end

def sans_backtrace(backtrace, caller) #:nodoc:
saned = backtrace.reject { |frame| frame =~ FILE_REGEXP }
saned = backtrace.reject { |frame| frame =~ FILE_REGEXP || (frame =~ /\.java:/ && RUBY_PLATFORM =~ /java/) }
saned -= caller
end

Expand Down

0 comments on commit b2be097

Please sign in to comment.