From 5dffe89cd2cd93ac24f9fa04274c76f217d0611a Mon Sep 17 00:00:00 2001 From: Yujia Qiao Date: Mon, 24 Jan 2022 17:55:38 +0800 Subject: [PATCH 1/2] Fix subcommand help messages --- leo/commands/build.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/leo/commands/build.rs b/leo/commands/build.rs index a3675a6ec8..f8ee09beec 100644 --- a/leo/commands/build.rs +++ b/leo/commands/build.rs @@ -40,8 +40,13 @@ fn parse_excluded_names(src: &str) -> Box { Box::from(src) } -// Compiler Options wrapper for Build command. Also used by other commands which -// require Build command output as their input. +#[cfg_attr( + doc, + doc = r#" +/// Compiler Options wrapper for Build command. Also used by other commands which +/// require Build command output as their input. +"# +)] #[derive(StructOpt, Clone, Debug)] pub struct BuildOptions { #[structopt(long, help = "Disable constant folding compiler optimization.")] From 3459e56b4c549170b792ec058b58f09480af8617 Mon Sep 17 00:00:00 2001 From: Yujia Qiao Date: Wed, 26 Jan 2022 11:55:13 +0800 Subject: [PATCH 2/2] Delete the unnecessary slash --- leo/commands/build.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/leo/commands/build.rs b/leo/commands/build.rs index f8ee09beec..c5177fb206 100644 --- a/leo/commands/build.rs +++ b/leo/commands/build.rs @@ -42,10 +42,7 @@ fn parse_excluded_names(src: &str) -> Box { #[cfg_attr( doc, - doc = r#" -/// Compiler Options wrapper for Build command. Also used by other commands which -/// require Build command output as their input. -"# + doc = "Compiler Options wrapper for Build command. Also used by other commands whichrequire Build command output as their input." )] #[derive(StructOpt, Clone, Debug)] pub struct BuildOptions {