Skip to content

Commit da92022

Browse files
authored
docs: cast wallet import (foundry-rs#5604)
1 parent 6597cb4 commit da92022

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

cli/src/cmd/cast/wallet/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,11 @@ pub enum WalletSubcommands {
106106
/// Import a private key into an encrypted keystore.
107107
#[clap(visible_alias = "i")]
108108
Import {
109-
#[clap(help = "The name for the account in the keystore.", value_name = "ACCOUNT_NAME")]
109+
/// The name for the account in the keystore.
110+
#[clap(value_name = "ACCOUNT_NAME")]
110111
account_name: String,
112+
/// If provided, keystore will be saved here instead of the default keystores directory
113+
/// (~/.foundry/keystores)
111114
#[clap(long, short)]
112115
keystore_dir: Option<String>,
113116
#[clap(flatten)]

cli/src/opts/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub struct Wallet {
100100
)]
101101
pub keystore_path: Option<String>,
102102

103-
// Use a keystore from the default folder by its name
103+
/// Use a keystore from the default keystores folder (~/.foundry/keystores) by its filename
104104
#[clap(
105105
long = "account",
106106
help_heading = "Wallet options - keystore",

cli/src/opts/wallet/multi_wallet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub struct MultiWallet {
153153
)]
154154
pub keystore_paths: Option<Vec<String>>,
155155

156-
// Use a keystore from the default folder by its name
156+
/// Use a keystore from the default keystores folder (~/.foundry/keystores) by its filename
157157
#[clap(
158158
long = "account",
159159
visible_alias = "accounts",

0 commit comments

Comments
 (0)