Remove options from the help display that don't apply to a command

Open
#12,430 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Active
Domain
cli

Research direction

The issue does not name which options should be removed or how groups should be formed, so start by reading the earlier grouping work in #12213 and the discussion on this issue to find the agreed scope. Identify the option definitions that apply to v2 commands and the filtering functions that #12213 added. Done means the options that do not apply to a v2 command are gone and the remaining ones are grouped, which needs maintainer confirmation of the list first.

Written by the indexing model from the issue text.

Description

attention: pr-welcome re: options re: user experience type: enhancement

I'd like to remove options that don't apply to a v2 command and to group options.

I'd done some grouping in #12213 but this was a bit by eye and improvised with filtering functions.

Dominant language
Haskell
Stars
1.8k
Forks
766
Avg merge
5d 21h
Merged PRs (30d)
27

Getting set up

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.

More from haskell/cabal

All issues in haskell/cabal

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.