-
Notifications
You must be signed in to change notification settings - Fork 10
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
To much magic... ({} != Hash.new()) #39
Labels
Comments
Thanks for the bug report. Can you give me the error message and/or stacktrace you're getting? |
Sorry, no error message or exceptions. The options is just an empty hash. module Foo
option :urgent, type: :boolean, default: true
# Does a WTF
def wtf(argv=Hash.new())
puts "ARGV: #{argv.inspect}"
end
end yields:
Interestingly...
Two arguments seems to causes it to bork
Now that I look at the backtrace, it reminded me that I'm also using boson-more and added to my ~/.bosonrc
I hope that helps. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First off - thank you very much for creating boson. I've found it to be a wonderful tool. Recently I've been upgrading from < 1.0 to 1.2.3. I've noticed that defining "options" as "Hash.new()" does not work.
Where as this works:
This was execute with: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
The text was updated successfully, but these errors were encountered: