ruby / ruby/irb

Use `OptionParser` to parse options

Open
#655 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.