Use `OptionParser` to parse options
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Ruby
- Stars
- 478
- Forks
- 158
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 12
Description
Currently IRB parses command line options with IRB.parse_opts, which means the output of irb --help needs to be manually updated. We should use OptionParser instead to make the task easier.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at IRB.parse_opts, the current command-line option parser, and inspect how it produces the irb --help output. Compare that flow with Ruby's OptionParser documentation and identify the existing option definitions that need to move. Done means command-line options are parsed with OptionParser and the help output no longer requires separate manual updates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- cli
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100