irb icon indicating copy to clipboard operation
irb copied to clipboard

Use OptionParser to parse options

Open tomash opened this issue 2 years ago • 2 comments

Work-in-progress.

Fixes https://github.com/ruby/irb/issues/655

Checklist:

  • [x] options and values parity with old parse_opts
  • [ ] remaining argv-based code for running scripts and arguments pass --
  • [ ] I18n (allowing removal of lc/help-message)

tomash avatar Feb 02 '24 12:02 tomash

Cześć @tomash, jak się masz?

Are you still on it or can I give it a go?

alexanderadam avatar Oct 27 '25 21:10 alexanderadam

@alexanderadam Grüezi! Go ahead, as you can see from history I haven't worked on it since over a year. I actually forgot about this work, thanks for bringing it up!

The "only" remaining challenge is handling anything passed after "--", which is way outside OptionParser capabilities. My plan for next step was to isolate them for separate parsing and only use OptionParser on the remaining, "vanilla" arguments part.

tomash avatar Oct 28 '25 08:10 tomash