Skip to content

Commit

Permalink
fix: fix clap help text
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Nov 7, 2024
1 parent 31202ef commit 8da4765
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/sozo/src/commands/options/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct TransactionOptions {
pub fee_token: FeeToken,

Check warning on line 15 in bin/sozo/src/commands/options/transaction.rs

View check run for this annotation

Codecov / codecov/patch

bin/sozo/src/commands/options/transaction.rs#L15

Added line #L15 was not covered by tests

#[arg(long, value_name = "MULTIPLIER")]
#[arg(help = "The multiplier to use for the fee estimate (--eth).")]
#[arg(help = "The multiplier to use for the fee estimate (--fee-token eth).")]
#[arg(long_help = "The multiplier to use for the fee estimate. This value will be used on \
the estimated fee which will be used as the max fee for the transaction. \
(max_fee = estimated_fee * multiplier)")]
Expand All @@ -26,17 +26,21 @@ pub struct TransactionOptions {
pub fee_estimate_multiplier: Option<f64>,

#[arg(long)]
#[arg(help = "Maximum raw value to be used for fees, in Wei (--eth).")]
#[arg(help = "Maximum raw value to be used for fees, in Wei (--fee-token eth).")]
#[arg(conflicts_with = "fee_estimate_multiplier")]
#[arg(conflicts_with = "gas")]
#[arg(conflicts_with = "gas_price")]
#[arg(global = true)]
pub max_fee_raw: Option<Felt>,

#[arg(long, help = "Maximum L1 gas amount (--strk).")]
#[arg(long, help = "Maximum L1 gas amount (--fee-token strk).")]
#[arg(conflicts_with = "max_fee_raw")]
#[arg(conflicts_with = "fee_estimate_multiplier")]
pub gas: Option<u64>,

#[arg(long, help = "Maximum L1 gas price in STRK (--strk).")]
#[arg(long, help = "Maximum L1 gas price in STRK (--fee-token strk).")]
#[arg(conflicts_with = "max_fee_raw")]
#[arg(conflicts_with = "fee_estimate_multiplier")]
pub gas_price: Option<u128>,

#[arg(long)]
Expand Down

0 comments on commit 8da4765

Please sign in to comment.