boson icon indicating copy to clipboard operation
boson copied to clipboard

Multiple Default Arguments Failing

Open jonmchan opened this issue 8 years ago • 2 comments

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

jonmchan avatar Jul 31 '15 17:07 jonmchan

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.

cldwalker avatar Jul 31 '15 17:07 cldwalker

thanks for looking into this!

jonmchan avatar Jul 31 '15 17:07 jonmchan