From 7ba9823f588edb4e7ca6342160d5c902de18b5c4 Mon Sep 17 00:00:00 2001 From: charisma98 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 07074c2f..5b629cb3 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,