mirror of
https://github.com/nushell/nushell.git
synced 2025-04-21 19:58:21 +02:00
Improve full help for flags (#4559)
This commit is contained in:
parent
b92aaf0432
commit
a32ce93c79
@ -299,7 +299,7 @@ pub fn get_flags_section(signature: &Signature) -> String {
|
|||||||
flag.long, arg, flag.desc
|
flag.long, arg, flag.desc
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
format!(" --{} {:?}\n {}\n", flag.long, arg, flag.desc)
|
format!(" --{} <{:?}>\n {}\n", flag.long, arg, flag.desc)
|
||||||
}
|
}
|
||||||
} else if let Some(short) = flag.short {
|
} else if let Some(short) = flag.short {
|
||||||
if flag.required {
|
if flag.required {
|
||||||
|
Loading…
Reference in New Issue
Block a user