dannypurcell / rubycom

Turn your library into a command-line app by simply including Rubycom.
http://dannypurcell.github.io/rubycom/
MIT License
5 stars 0 forks source link

extra arguments not included in defaulted last parameter #28

Open dannypurcell opened 8 years ago

dannypurcell commented 8 years ago

Example:

def test(a, b, c = [])
  puts "a=#{a}, b=#{b}, c=#{c}"
end

Command Line:

test 1 2 3 4 5

Expected:

"a=1, b=2, c=[3,4,5]"

Actual:

"a=1, b=2, c=3"