From d0349e9ba9905c3894bc2c1599b7a57685d57f27 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 18 Dec 2019 13:06:39 +0100 Subject: [PATCH] src/cli/format.rs - print_help: by default, use verbose output for simply commands --- proxmox-api/src/cli/format.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/proxmox-api/src/cli/format.rs b/proxmox-api/src/cli/format.rs index a83c754e..95ce68d3 100644 --- a/proxmox-api/src/cli/format.rs +++ b/proxmox-api/src/cli/format.rs @@ -199,7 +199,7 @@ pub fn print_help( top_def: &CommandLineInterface, mut prefix: String, args: &[String], - verbose: Option, + mut verbose: Option, ) { let mut iface = top_def; @@ -222,6 +222,12 @@ pub fn print_help( return; } + if verbose.is_none() { + if let CommandLineInterface::Simple(_) = iface { + verbose = Some(true); + } + } + let format = match verbose.unwrap_or(false) { true => DocumentationFormat::Full, false => DocumentationFormat::Short,