Skip to content

Commit 0e0a6c1

Browse files
joshkaorium
authored andcommitted
Use cargo styles for help text
1 parent 191147f commit 0e0a6c1

3 files changed

Lines changed: 36 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@ codecov = { repository = "orium/cargo-rdme", branch = "main", service = "github"
3333
[dependencies]
3434
cargo_metadata = "0.19.0"
3535
clap = "4.5.21"
36+
clap-cargo = "0.14.1"
37+
# Disable ssh support in git2 to avoid depending on openssl (which fails to build if an unsupported version is found).
38+
git2 = { version = "0.19.0", default-features = false }
39+
indoc = "2.0.5"
3640
itertools = "0.13.0"
3741
pulldown-cmark = "0.12.2"
3842
syn = { version = "2.0.89", features = ["full", "extra-traits"] }
43+
termcolor = "1.4.1"
3944
thiserror = "2.0.3"
4045
toml = "0.8.19"
41-
# Disable ssh support in git2 to avoid depending on openssl (which fails to build if an unsupported version is found).
42-
git2 = { version = "0.19.0", default-features = false }
43-
indoc = "2.0.5"
44-
termcolor = "1.4.1"
4546
unicase = "2.8.0"
4647

4748
[dev-dependencies]

src/options.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ pub fn cmd_options() -> CmdOptions {
115115
let cmd_opts = Command::new(PROJECT_NAME)
116116
.version(VERSION)
117117
.about("Create the README from your crate’s documentation.")
118+
.styles(clap_cargo::style::CLAP_STYLING)
118119
.arg(
119120
Arg::new("entrypoint")
120121
.long("entrypoint")

0 commit comments

Comments
 (0)