boson
boson copied to clipboard
Multiple Default Arguments Failing
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
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.
thanks for looking into this!