cldwalker / boson

A command/task framework similar to rake and thor built with extendability in mind.
http://rdoc.info/gems/boson
MIT License
218 stars 10 forks source link

Multiple Default Arguments Failing #55

Open jonmchan opened 9 years ago

jonmchan commented 9 years ago

Default Arguments are failing when there are more than one for a single command:

require 'boson/runner'
require 'sidekiq'

class TestBoson < Boson::Runner
  def three_default_arguments ( param1= 1, param2= 2, param3= 3 )
    puts param1
    puts param2
    puts param3
  end
  def two_default_arguments ( param1= 1, param2= 2 )
    puts param1
    puts param2
  end
  def single_default_arguments ( param1= 1)
    puts param1
  end
end

TestBoson.start

Results:

$ ./boson three_default_arguments 

3
## Should be 1, 2, 3

$ ./boson three_default_arguments 5
5

3
## should be 5, 2, 3
cldwalker commented 9 years ago

Thanks for reporting your issue! This is one of my 7 active issues. Use that link to check how soon your issue will be answered. Don't forget to check your issue against this project's CONTRIBUTING.md. Cheers.

jonmchan commented 9 years ago

thanks for looking into this!