You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use clap::{Parser,Subcommand};#[derive(Debug,Parser)]structArgs{#[clap(subcommand)]sub:Command,}#[derive(Debug,Subcommand)]enumCommand{/// About text for subcommand that's just a little bit too long and so needs to be wrappedCmdName,}fnmain(){Args::parse();}
Steps to reproduce the bug with the above code
cargo run -- -h on a narrow enough terminal (examples below are 60 cols).
Actual Behaviour
Commands:
cmd-name About text for subcommand that's just a
little bit too long and so needs to be
wrapped
help Print this message or the help of the given
subcommand(s)
Expected Behaviour
Commands:
cmd-name About text for subcommand that's just a
little bit too long and so needs to be
wrapped
help Print this message or the help of the given
subcommand(s)
Additional Context
It works fine when you have a longer subcommand name.
Commands:
a-much-longer-cmd-name
About text for subcommand that's just a little bit
too long and so needs to be wrapped
help
Print this message or the help of the given
subcommand(s)
Debug Output
No response
The text was updated successfully, but these errors were encountered:
Please complete the following tasks
Rust Version
rustc 1.80.0 (051478957 2024-07-21)
Clap Version
4.5.11
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run -- -h
on a narrow enough terminal (examples below are 60 cols).Actual Behaviour
Expected Behaviour
Additional Context
It works fine when you have a longer subcommand name.
Debug Output
No response
The text was updated successfully, but these errors were encountered: