Skip to content

Commit

Permalink
feat: enable auto-wrapping of CLI help messages
Browse files Browse the repository at this point in the history
By enabling clap's `wrap_help` feature, the help output is now nicely
aligned to the terminal wraps, which makes it easier to read in case of
longer help messages.
  • Loading branch information
dnaka91 committed Oct 6, 2023
1 parent 458ede9 commit 86cd5c7
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 39 deletions.
142 changes: 104 additions & 38 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ include = [
askama = { version = "0.12.0", default-features = false }
askama_escape = "0.10.3"
camino = { version = "1.1.6", features = ["serde1"] }
clap = { version = "4.4.4", features = ["derive"] }
clap = { version = "4.4.4", features = ["derive", "wrap_help"] }
clap_complete = "4.4.1"
clap_mangen = "0.2.14"
color-eyre = { version = "0.6.2", default-features = false }
Expand Down

0 comments on commit 86cd5c7

Please sign in to comment.