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

Add method overload of OptionParser#on #1114

Merged
merged 1 commit into from
Oct 6, 2022
Merged

Conversation

joker1007
Copy link
Contributor

Add overload signature of OptionParser#run.

support following patterns:

  • on(short, long, pat = /.*/, desc = "") {|v| ...} -> self
  • on(short, long, klass = String, desc = "") {|v| ...} -> self
  • on(short, long, *rest) {|v| ...} -> self

Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🙏

@soutaro soutaro merged commit 7d9c02e into ruby:master Oct 6, 2022
@joker1007 joker1007 deleted the optparse-sig branch October 6, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants