Skip to content

Commit

Permalink
[gh-755] remove ambiguous -p flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Feliciss committed Oct 3, 2023
1 parent 11fdab5 commit 57ac8ed
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/account/commands/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use rooch_types::{account::AccountModule, error::RoochResult, keypair_type::KeyP
#[derive(Debug, Parser)]
pub struct CreateCommand {
/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,
#[clap(flatten)]
pub context_options: WalletContextOptions,
Expand Down
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/account/commands/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct ImportCommand {
#[clap(short = 'm', long = "mnemonic-phrase")]
mnemonic_phrase: String,
/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,
#[clap(flatten)]
pub context_options: WalletContextOptions,
Expand Down
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/account/commands/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::fmt::Debug;
#[derive(Debug, Parser)]
pub struct ListCommand {
/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,
#[clap(flatten)]
pub context_options: WalletContextOptions,
Expand Down
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/account/commands/nullify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct NullifyCommand {
#[clap(short = 'a', long = "address")]
address: String,
/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,
#[clap(flatten)]
pub context_options: WalletContextOptions,
Expand Down
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/account/commands/switch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct SwitchCommand {
#[clap(short = 'a', long = "address")]
address: String,
/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,
}

Expand Down
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/account/commands/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct UpdateCommand {
#[clap(short = 'm', long = "mnemonic-phrase")]
mnemonic_phrase: String,
/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,
#[clap(flatten)]
pub context_options: WalletContextOptions,
Expand Down
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct Init {
#[clap(short = 's', long = "server-url")]
pub server_url: Option<String>,
/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,
#[clap(flatten)]
pub context_options: WalletContextOptions,
Expand Down
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/move_cli/commands/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub struct Publish {
pub by_move_action: bool,

/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub struct RunFunction {
tx_options: TransactionOptions,

/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,
}

Expand Down
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/session_key/commands/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct CreateCommand {
pub max_inactive_interval: u64,

/// Whether a password should be provided
#[clap(short = 'p', long = "password")]
#[clap(long = "password")]
password_required: Option<bool>,

#[clap(flatten)]
Expand Down

0 comments on commit 57ac8ed

Please sign in to comment.