Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): replace underscore for hyphen on wallet cli args #212

Merged
merged 1 commit into from
Dec 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cli/src/cast_opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,23 +267,23 @@ impl EthereumOpts {

#[derive(StructOpt, Debug, Clone)]
pub struct Wallet {
#[structopt(long = "private_key", help = "Your private key string")]
#[structopt(long = "private-key", help = "Your private key string")]
pub private_key: Option<String>,

#[structopt(long = "keystore", help = "Path to your keystore folder / file")]
pub keystore_path: Option<String>,

#[structopt(long = "password", help = "Your keystore password", requires = "keystore_path")]
#[structopt(long = "password", help = "Your keystore password", requires = "keystore-path")]
pub keystore_password: Option<String>,

#[structopt(long = "mnemonic_path", help = "Path to your mnemonic file")]
#[structopt(long = "mnemonic-path", help = "Path to your mnemonic file")]
pub mnemonic_path: Option<String>,

#[structopt(
long = "mnemonic_index",
help = "your index in the standard hd path",
default_value = "0",
requires = "mnemonic_path"
requires = "mnemonic-path"
)]
pub mnemonic_index: u32,
}
Expand Down