Skip to content

Style of help text headings in cargo-add and cargo-rm should be consistent with clap v4 #11238

@weihanglo

Description

@weihanglo
Member

Problem

  • Headings are now Title case

Ref: https://github.com/clap-rs/clap/blob/bd5a6eab3bb4c8e3bd9f75be83821f316dde8ac8/CHANGELOG.md?plain=1#L178

Steps

$ cargo rm --help
Remove dependencies from a Cargo.toml manifest file

Usage: 



SECTION: <---- Should be "Title case"
$ cargo add --help
Add dependencies to a Cargo.toml manifest file

Usage:



SOURCE: <---- Should be "Title case"


SECTION: <---- Should be "Title case"

Possible Solution(s)

Search next_help_heading and update arguments accordingly to Title case.

Notes

No response

Version

commit b332991a57c9d055f1864de1eed93e2178d49440

Activity

added a commit that references this issue on Oct 14, 2022
f46da37
self-assigned this
on Oct 14, 2022
added a commit that references this issue on Oct 14, 2022
99ff79e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-cli-helpArea: built-in command-line helpC-bugCategory: bugE-easyExperience: Easy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @epage@weihanglo

    Issue actions

      Style of help text headings in `cargo-add` and `cargo-rm` should be consistent with clap v4 · Issue #11238 · rust-lang/cargo