test-validator: improve multi-value arg help output (#26650)

This commit is contained in:
Trent Nelson 2022-08-15 06:08:26 -06:00 committed by GitHub
parent e779032e4e
commit b28657ff46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -193,20 +193,20 @@ fn main() {
.arg(
Arg::with_name("bpf_program")
.long("bpf-program")
.value_name("ADDRESS_OR_PATH BPF_PROGRAM.SO")
.value_names(&["ADDRESS_OR_KEYPAIR", "BPF_PROGRAM.SO"])
.takes_value(true)
.number_of_values(2)
.multiple(true)
.help(
"Add a BPF program to the genesis configuration. \
If the ledger already exists then this parameter is silently ignored. \
First argument can be a public key or path to file that can be parsed as a keypair",
First argument can be a pubkey string or path to a keypair",
),
)
.arg(
Arg::with_name("account")
.long("account")
.value_name("ADDRESS FILENAME.JSON")
.value_names(&["ADDRESS", "DUMP.JSON"])
.takes_value(true)
.number_of_values(2)
.allow_hyphen_values(true)