From 79bc7345e8f519942d98708d0345af423bd516c0 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 25 Jun 2019 06:19:51 +0200 Subject: [PATCH] src/cli/command.rs: fix ReST output format --- src/cli/command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/command.rs b/src/cli/command.rs index 7c472b3a..250d0178 100644 --- a/src/cli/command.rs +++ b/src/cli/command.rs @@ -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) } };