Skip to content

Suggestion: Interpret --help --list as equivalent to --list #15648

Open
@schuelermine

Description

@schuelermine

Problem

When you run cargo --help, you are told to use --list to get the full list of subcommands. It is not unlikely that one would interpret this as saying cargo --help --list should be used.

Proposed Solution

Instead of handling cargo --help --list as cargo --help, handle cargo --help --list as either cargo --list or as a combination of cargo --help and cargo --list, printing both flags and the full subcommand list.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cliArea: Command-line interface, option parsing, etc.C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions