Skip to content

Commit

Permalink
clap-utils: Do not allow multiple values for --signer
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Dec 15, 2023
1 parent a58e462 commit 9969e43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions clap-utils/src/offline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ fn signer_arg<'a, 'b>() -> Arg<'a, 'b> {
.validator(is_pubkey_sig)
.requires(BLOCKHASH_ARG.name)
.multiple(true)
.number_of_values(1)
.help(SIGNER_ARG.help)
}

Expand Down
2 changes: 1 addition & 1 deletion clap-v3-utils/src/offline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn signer_arg<'a>() -> Arg<'a> {
.value_parser(value_parser!(PubkeySignature))
.requires(BLOCKHASH_ARG.name)
.multiple_occurrences(true)
.multiple_values(true)
.multiple_values(false)
.help(SIGNER_ARG.help)
}

Expand Down

0 comments on commit 9969e43

Please sign in to comment.