Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Default Arguments Failing #55

Open
jonmchan opened this issue Jul 31, 2015 · 2 comments
Open

Multiple Default Arguments Failing #55

jonmchan opened this issue Jul 31, 2015 · 2 comments

Comments

@jonmchan
Copy link

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
Copy link
Owner

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
Copy link
Author

thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants