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

Typed arguments #4

Open
RobertDober opened this issue Aug 6, 2013 · 0 comments
Open

Typed arguments #4

RobertDober opened this issue Aug 6, 2013 · 0 comments
Assignees
Milestone

Comments

@RobertDober
Copy link
Owner

Per default kwd args are of type String, while switches are of type bool, one shall be able to change this default

options = Lab42::Options.new
options.convert(:count).to(Integer)

options = options.parse ARGV
options.count # --> 84 (but not "84")
@ghost ghost assigned RobertDober Aug 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant