mirror of
https://github.com/clap-rs/clap
synced 2025-01-06 09:48:43 +00:00
parent
ad05d1624b
commit
e9f1287b63
2 changed files with 5 additions and 5 deletions
|
@ -40,9 +40,9 @@ package manager utility
|
||||||
Usage: pacman[EXE] <COMMAND>
|
Usage: pacman[EXE] <COMMAND>
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
query -Q --query Query the package database.
|
query, -Q, --query Query the package database.
|
||||||
sync -S --sync Synchronize packages.
|
sync, -S, --sync Synchronize packages.
|
||||||
help Print this message or the help of the given subcommand(s)
|
help Print this message or the help of the given subcommand(s)
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help Print help information
|
-h, --help Print help information
|
||||||
|
|
|
@ -818,11 +818,11 @@ impl<'cmd, 'writer> Help<'cmd, 'writer> {
|
||||||
let mut styled = StyledStr::new();
|
let mut styled = StyledStr::new();
|
||||||
styled.literal(subcommand.get_name());
|
styled.literal(subcommand.get_name());
|
||||||
if let Some(short) = subcommand.get_short_flag() {
|
if let Some(short) = subcommand.get_short_flag() {
|
||||||
styled.none(" ");
|
styled.none(", ");
|
||||||
styled.literal(format!("-{}", short));
|
styled.literal(format!("-{}", short));
|
||||||
}
|
}
|
||||||
if let Some(long) = subcommand.get_long_flag() {
|
if let Some(long) = subcommand.get_long_flag() {
|
||||||
styled.none(" ");
|
styled.none(", ");
|
||||||
styled.literal(format!("--{}", long));
|
styled.literal(format!("--{}", long));
|
||||||
}
|
}
|
||||||
longest = longest.max(styled.display_width());
|
longest = longest.max(styled.display_width());
|
||||||
|
|
Loading…
Reference in a new issue