clap-utils: Forbid multiple values for `--signer` (#34482)

* clap-utils: Do not allow multiple values for --signer

* Add changelog entry
This commit is contained in:
Jon C 2024-01-05 21:25:50 +01:00 committed by GitHub
parent e84974cf63
commit 08082df879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@ Release channels have their own copy of this changelog:
* RPC's `simulateTransaction` now returns `innerInstructions` as `json`/`jsonParsed` (#34313). * RPC's `simulateTransaction` now returns `innerInstructions` as `json`/`jsonParsed` (#34313).
* Bigtable upload now includes entry summary data for each slot, stored in a * Bigtable upload now includes entry summary data for each slot, stored in a
new `entries` table 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 * Upgrade Notes
* `solana-program` and `solana-sdk` default to support for Borsh v1, with * `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. limited backward compatibility for v0.10 and v0.9. Please upgrade to Borsh v1.

View File

@ -52,6 +52,7 @@ fn signer_arg<'a, 'b>() -> Arg<'a, 'b> {
.validator(is_pubkey_sig) .validator(is_pubkey_sig)
.requires(BLOCKHASH_ARG.name) .requires(BLOCKHASH_ARG.name)
.multiple(true) .multiple(true)
.number_of_values(1)
.help(SIGNER_ARG.help) .help(SIGNER_ARG.help)
} }

View File

@ -53,7 +53,7 @@ fn signer_arg<'a>() -> Arg<'a> {
.value_parser(value_parser!(PubkeySignature)) .value_parser(value_parser!(PubkeySignature))
.requires(BLOCKHASH_ARG.name) .requires(BLOCKHASH_ARG.name)
.multiple_occurrences(true) .multiple_occurrences(true)
.multiple_values(true) .multiple_values(false)
.help(SIGNER_ARG.help) .help(SIGNER_ARG.help)
} }