Skip to content

Commit

Permalink
Use cargo styles for help text
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka authored and orium committed Nov 25, 2024
1 parent 191147f commit 0e0a6c1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
30 changes: 30 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ codecov = { repository = "orium/cargo-rdme", branch = "main", service = "github"
[dependencies]
cargo_metadata = "0.19.0"
clap = "4.5.21"
clap-cargo = "0.14.1"
# Disable ssh support in git2 to avoid depending on openssl (which fails to build if an unsupported version is found).
git2 = { version = "0.19.0", default-features = false }
indoc = "2.0.5"
itertools = "0.13.0"
pulldown-cmark = "0.12.2"
syn = { version = "2.0.89", features = ["full", "extra-traits"] }
termcolor = "1.4.1"
thiserror = "2.0.3"
toml = "0.8.19"
# Disable ssh support in git2 to avoid depending on openssl (which fails to build if an unsupported version is found).
git2 = { version = "0.19.0", default-features = false }
indoc = "2.0.5"
termcolor = "1.4.1"
unicase = "2.8.0"

[dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ pub fn cmd_options() -> CmdOptions {
let cmd_opts = Command::new(PROJECT_NAME)
.version(VERSION)
.about("Create the README from your crate’s documentation.")
.styles(clap_cargo::style::CLAP_STYLING)
.arg(
Arg::new("entrypoint")
.long("entrypoint")
Expand Down

0 comments on commit 0e0a6c1

Please sign in to comment.