mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-29 07:17:42 +00:00
src/cli/format.rs - print_help: by default, use verbose output for simply commands
This commit is contained in:
parent
13007df318
commit
d0349e9ba9
@ -199,7 +199,7 @@ pub fn print_help(
|
|||||||
top_def: &CommandLineInterface,
|
top_def: &CommandLineInterface,
|
||||||
mut prefix: String,
|
mut prefix: String,
|
||||||
args: &[String],
|
args: &[String],
|
||||||
verbose: Option<bool>,
|
mut verbose: Option<bool>,
|
||||||
) {
|
) {
|
||||||
let mut iface = top_def;
|
let mut iface = top_def;
|
||||||
|
|
||||||
@ -222,6 +222,12 @@ pub fn print_help(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if verbose.is_none() {
|
||||||
|
if let CommandLineInterface::Simple(_) = iface {
|
||||||
|
verbose = Some(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let format = match verbose.unwrap_or(false) {
|
let format = match verbose.unwrap_or(false) {
|
||||||
true => DocumentationFormat::Full,
|
true => DocumentationFormat::Full,
|
||||||
false => DocumentationFormat::Short,
|
false => DocumentationFormat::Short,
|
||||||
|
Loading…
Reference in New Issue
Block a user