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

Why is a default value needed? #25

Open
cserb opened this issue Feb 26, 2020 · 0 comments
Open

Why is a default value needed? #25

cserb opened this issue Feb 26, 2020 · 0 comments

Comments

@cserb
Copy link

cserb commented Feb 26, 2020

I don't really understand the necessity. Even more it seems to be a bad place to define default values (unless required by design)
Also I want to do something like:

if  !options.string["foo"].nil? && options.string["bar"].nil?
  puts "If you pass 'foo' you also have to pass 'bar'"
end

or just simply checking if a param was passed or not

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

1 participant