Skip to content

Commit acf143e

Browse files
committed
Remove duplicate cli required_else_help arg helpers
The payjoin-cli expects some args else it lists a help message for users as a walkthrough for creating a new payjoin. There were some duplicate functions that were causing some dev confusion so the duplicates were removed.
1 parent 54379b1 commit acf143e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

payjoin-cli/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ fn cli() -> ArgMatches {
147147
Command::new("send")
148148
.arg_required_else_help(true)
149149
.arg(arg!(<BIP21> "The `bitcoin:...` payjoin uri to send to"))
150-
.arg_required_else_help(true)
151150
.arg(
152151
Arg::new("fee_rate")
153152
.long("fee-rate")
@@ -159,8 +158,7 @@ fn cli() -> ArgMatches {
159158

160159
let mut receive_cmd = Command::new("receive")
161160
.arg_required_else_help(true)
162-
.arg(arg!(<AMOUNT> "The amount to receive in satoshis").value_parser(parse_amount_in_sat))
163-
.arg_required_else_help(true);
161+
.arg(arg!(<AMOUNT> "The amount to receive in satoshis").value_parser(parse_amount_in_sat));
164162

165163
#[cfg(feature = "v2")]
166164
let mut cmd = cmd.subcommand(Command::new("resume"));

0 commit comments

Comments
 (0)