Skip to content

Consider unifying how rustc cli flag values are presented #140102

Open
@jieyouxu

Description

@jieyouxu

Not necessarily for this PR, but I think we should settle on a consistent way of listing out sets of alternatives like this across our options. We currently have

  • Exhaustively listed in command (--crate-type [bin|lib|rlib|...])
  • Listed in help in parentheses (INFO may be one of (all-target-specs-json|calling-conventions|...))
  • Listed in help as a textual list (The KIND can be one of dependency, crate, native, framework, or all (the default).)
    With this being a fourth potential layout

Originally posted by @clubby789 in #140077 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: Command-line interface (CLI) to the compilerA-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions