Skip to content

Commit

Permalink
Fix #116 with consistent --fee-rate arg
Browse files Browse the repository at this point in the history
Co-authored-by: DanGould <[email protected]>
  • Loading branch information
arthurmelton and DanGould authored Nov 21, 2023
1 parent 40e687c commit 089bbf2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions payjoin-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() -> Result<()> {
Some(("send", sub_matches)) => {
let bip21 = sub_matches.get_one::<String>("BIP21").context("Missing BIP21 argument")?;
let fee_rate_sat_per_vb =
sub_matches.get_one::<f32>("fee_rate").context("Missing fee_rate argument")?;
sub_matches.get_one::<f32>("fee_rate").context("Missing --fee-rate argument")?;
app.send_payjoin(bip21, fee_rate_sat_per_vb)?;
}
Some(("receive", sub_matches)) => {
Expand Down Expand Up @@ -52,8 +52,9 @@ fn cli() -> ArgMatches {
.arg_required_else_help(true)
.arg(arg!(<BIP21> "The `bitcoin:...` payjoin uri to send to"))
.arg_required_else_help(true)
.arg(
arg!(--fee_rate <VALUE>)
.arg(Arg::new("fee_rate")
.long("fee-rate")
.value_name("FEE_SAT_PER_VB")
.help("Fee rate in sat/vB")
.value_parser(value_parser!(f32)),
)
Expand Down

0 comments on commit 089bbf2

Please sign in to comment.