]> git.proxmox.com Git - proxmox-backup.git/commitdiff
src/cli/command.rs: fix ReST output format
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 25 Jun 2019 04:19:51 +0000 (06:19 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 25 Jun 2019 04:19:51 +0000 (06:19 +0200)
src/cli/command.rs

index 7c472b3a9c53e3ae72b8076cb38e8ebdf23020ed..250d0178f7a399365b1bfe80db4c5eb5b027eadb 100644 (file)
@@ -69,7 +69,7 @@ fn generate_usage_str(
             options.push_str(&get_property_description(prop, &schema, ParameterDisplayStyle::Arg, format));
 
         } else {
-            args.push_str("--"); args.push_str(prop);
+            args.push_str(" --"); args.push_str(prop);
             args.push(' ');
             args.push_str(&type_text);
         }
@@ -90,7 +90,7 @@ fn generate_usage_str(
             format!("{}{}{}{}\n\n{}\n\n", indent, prefix, args, option_indicator, description)
         }
         DocumentationFormat::ReST => {
-            format!("``{} {}{}``\n\n{}\n\n", prefix, args.trim(), option_indicator, description)
+            format!("``{}{}{}``\n\n{}\n\n", prefix, args, option_indicator, description)
         }
     };