From 000b3b4e43e02a621683cb5beed4cceab44c4d0b Mon Sep 17 00:00:00 2001 From: Tim Lancina <804331+tlancina@users.noreply.github.com> Date: Wed, 5 Jan 2022 00:22:05 -0800 Subject: [PATCH] fix(cast): use correct description for send (#371) Workaround from: https://github.com/TeXitoi/structopt/issues/333#issuecomment-712265332 Co-authored-by: Tim Lancina --- cli/src/opts/mod.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/cli/src/opts/mod.rs b/cli/src/opts/mod.rs index 07074c2fce1c..5b629cb35c80 100644 --- a/cli/src/opts/mod.rs +++ b/cli/src/opts/mod.rs @@ -84,13 +84,16 @@ pub enum WalletType { } #[derive(StructOpt, Debug, Clone)] -/// The wallet options can either be: -/// 1. Ledger -/// 2. Trezor -/// 3. Mnemonic (via file path) -/// 4. Keystore (via file path) -/// 5. Private Key (cleartext in CLI) -/// 6. Private Key (interactively via secure prompt) +#[cfg_attr(not(doc), allow(missing_docs))] +#[cfg_attr(doc, doc = r#" +The wallet options can either be: +1. Ledger +2. Trezor +3. Mnemonic (via file path) +4. Keystore (via file path) +5. Private Key (cleartext in CLI) +6. Private Key (interactively via secure prompt) +"#)] pub struct Wallet { #[structopt(long, short, help = "Interactive prompt to insert your private key")] pub interactive: bool,