mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 19:28:00 +01:00
Enable auto-wrapping of the help message
This commit is contained in:
11
Cargo.lock
generated
11
Cargo.lock
generated
@@ -373,6 +373,7 @@ dependencies = [
|
|||||||
"anstyle",
|
"anstyle",
|
||||||
"clap_lex",
|
"clap_lex",
|
||||||
"strsim",
|
"strsim",
|
||||||
|
"terminal_size",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -1876,6 +1877,16 @@ dependencies = [
|
|||||||
"windows-sys 0.59.0",
|
"windows-sys 0.59.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "terminal_size"
|
||||||
|
version = "0.4.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "45c6481c4829e4cc63825e62c49186a34538b7b2750b73b266581ffb612fb5ed"
|
||||||
|
dependencies = [
|
||||||
|
"rustix 1.0.7",
|
||||||
|
"windows-sys 0.59.0",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "thiserror"
|
name = "thiserror"
|
||||||
version = "2.0.12"
|
version = "2.0.12"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ anyhow = "1.0.98"
|
|||||||
nix = { version = "0.30", features = ["fs", "term", "process", "signal", "poll"] }
|
nix = { version = "0.30", features = ["fs", "term", "process", "signal", "poll"] }
|
||||||
serde = { version = "1.0.219", features = ["derive"] }
|
serde = { version = "1.0.219", features = ["derive"] }
|
||||||
serde_json = "1.0.140"
|
serde_json = "1.0.140"
|
||||||
clap = { version = "4.5.37", features = ["derive"] }
|
clap = { version = "4.5.37", features = ["derive", "wrap_help"] }
|
||||||
signal-hook = { version = "0.3.17", default-features = false }
|
signal-hook = { version = "0.3.17", default-features = false }
|
||||||
uuid = { version = "1.6.1", features = ["v4"] }
|
uuid = { version = "1.6.1", features = ["v4"] }
|
||||||
reqwest = { version = "0.12.15", default-features = false, features = ["blocking", "rustls-tls-native-roots", "multipart", "gzip", "json"] }
|
reqwest = { version = "0.12.15", default-features = false, features = ["blocking", "rustls-tls-native-roots", "multipart", "gzip", "json"] }
|
||||||
@@ -45,7 +45,7 @@ async-trait = "0.1.88"
|
|||||||
signal-hook-tokio = { version = "0.3.1", features = ["futures-v0_3"] }
|
signal-hook-tokio = { version = "0.3.1", features = ["futures-v0_3"] }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
clap = { version = "4.5.37", features = ["derive"] }
|
clap = { version = "4.5.37", features = ["derive", "wrap_help"] }
|
||||||
clap_complete = "4.5.48"
|
clap_complete = "4.5.48"
|
||||||
clap_mangen = "0.2.26"
|
clap_mangen = "0.2.26"
|
||||||
url = "2.5.0"
|
url = "2.5.0"
|
||||||
|
|||||||
@@ -8,8 +8,7 @@ pub const DEFAULT_LISTEN_ADDR: &str = "127.0.0.1:8080";
|
|||||||
|
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
#[clap(author, version, about)]
|
#[clap(author, version, about)]
|
||||||
#[command(name = "asciinema")]
|
#[command(name = "asciinema", max_term_width = 100, infer_subcommands = true)]
|
||||||
#[command(infer_subcommands = true)]
|
|
||||||
pub struct Cli {
|
pub struct Cli {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
pub command: Commands,
|
pub command: Commands,
|
||||||
|
|||||||
Reference in New Issue
Block a user