ManageIQ / ManageIQ/optimist

No utility in overriding help/version given exception

Open
#87 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Ruby
Stars
259
Forks
35
PR merge metrics
No merged PRs in 30d

Description

Due to the handling of `:help`/`:version` flags by raising an exception, there is little to no utility in overriding these. I suggest not raising an exception (arguably there is no exception) or providing a more comprehensive way to override this behavior if a user/developer supplies his/her own `:help`/`:version` options.

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

The issue names only the :help/:version option handling and its exception behavior; start by locating that code in the Ruby command-line parser. Compare how user-defined :help and :version options are processed, then clarify the intended override behavior and add coverage for the agreed result. No file or test is named in the issue, so the expected behavior needs clarification before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.