Skip to content

Commit

Permalink
Change unit names in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuly14 committed Jan 12, 2024
1 parent 180599e commit 4c7b905
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cli/src/opts/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,25 +196,25 @@ pub enum Subcommands {
base_out: String,
},

/// Convert an ETH amount into another unit (ether, gwei or wei).
/// Convert an XCB amount into another unit (ether, nucle or ore).
///
/// Examples:
/// - 1ether wei
/// - "1 ether" wei
/// - 1ether ore
/// - "1 ether" ore
/// - 1ether
/// - 1 gwei
/// - 1gwei ether
/// - 1 nucle
/// - 1nucle ether
#[clap(visible_aliases = &["--to-unit", "tun", "2un"])]
ToUnit {
/// The value to convert.
value: Option<String>,

/// The unit to convert to (ether, gwei, wei).
/// The unit to convert to (ether, nucle, ore).
#[clap(default_value = "ore")]
unit: String,
},

/// Convert an ETH amount to wei.
/// Convert an XCB amount to ore.
///
/// Consider using --to-unit.
#[clap(visible_aliases = &["--to-ore", "tw", "2w"])]
Expand All @@ -223,12 +223,12 @@ pub enum Subcommands {
#[clap(allow_hyphen_values = true)]
value: Option<String>,

/// The unit to convert from (ether, gwei, wei).
/// The unit to convert from (ether, nucle, ore).
#[clap(default_value = "core")]
unit: String,
},

/// Convert wei into an ETH amount.
/// Convert ore into an XCB amount.
///
/// Consider using --to-unit.
#[clap(visible_aliases = &["--from-ore", "fw"])]
Expand All @@ -237,7 +237,7 @@ pub enum Subcommands {
#[clap(allow_hyphen_values = true)]
value: Option<String>,

/// The unit to convert from (ether, gwei, wei).
/// The unit to convert from (ether, nucle, ore).
#[clap(default_value = "core")]
unit: String,
},
Expand Down Expand Up @@ -596,7 +596,7 @@ pub enum Subcommands {
rpc: RpcOpts,
},

/// Get the balance of an account in wei.
/// Get the balance of an account in ore.
#[clap(visible_alias = "b")]
Balance {
/// The block height to query at.
Expand Down

0 comments on commit 4c7b905

Please sign in to comment.