Skip to content

Commit ae0d672

Browse files
committed
help: enable auto-wrapping of help output
Previously, without the 'wrap_help' feature enabled, Clap would not do any auto-wrapping of help text. For help text with long lines, this tends to lead to non-ideal formatting. It can be especially difficult to read when the width of the terminal is smaller. This commit enables 'wrap_help', which will automatically cause Clap to query the terminal size and wrap according to that. Or, if the terminal size cannot be determined, it will default to a maximum line width of 100. Ref #9599 (comment)
1 parent b0d6fd7 commit ae0d672

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Cargo.lock

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ruff/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bincode = { workspace = true }
3030
bitflags = { workspace = true }
3131
cachedir = { workspace = true }
3232
chrono = { workspace = true }
33-
clap = { workspace = true, features = ["derive", "env"] }
33+
clap = { workspace = true, features = ["derive", "env", "wrap_help"] }
3434
clap_complete_command = { workspace = true }
3535
clearscreen = { workspace = true }
3636
colored = { workspace = true }

0 commit comments

Comments
 (0)