Skip to content

Commit

Permalink
clap-utils: Forbid multiple values for --signer (solana-labs#34482)
Browse files Browse the repository at this point in the history
* clap-utils: Do not allow multiple values for --signer

* Add changelog entry
  • Loading branch information
joncinque authored Jan 5, 2024
1 parent e84974c commit 08082df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Release channels have their own copy of this changelog:
* RPC's `simulateTransaction` now returns `innerInstructions` as `json`/`jsonParsed` (#34313).
* Bigtable upload now includes entry summary data for each slot, stored in a
new `entries` table
* Forbid multiple values for the `--signer` CLI flag, forcing users to specify multiple occurrences of `--signer`, one for each signature
* Upgrade Notes
* `solana-program` and `solana-sdk` default to support for Borsh v1, with
limited backward compatibility for v0.10 and v0.9. Please upgrade to Borsh v1.
Expand Down
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 08082df

Please sign in to comment.