This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -534,12 +534,13 @@ impl<'a> Config<'a> {
534
534
}
535
535
}
536
536
537
- // In clap v2, `value_of` returns `None` if the argument id is not previously specified in
538
- // `Arg`. In contrast, in clap v3, `value_of` panics in this case. Therefore, compared
539
- // to the same function in solana-clap-utils, `signer_from_path` in solana-clap-v3-utils errors
540
- // early when `path` is a valid pubkey, but `SIGNER_ARG.name` is not specified in the args.
541
- // This function behaves exactly as `signer_from_path` from solana-clap-utils by catching
542
- // this special case.
537
+ // In clap v2, `value_of` returns `None` if the argument id is not previously
538
+ // specified in `Arg`. In contrast, in clap v3, `value_of` panics in this case.
539
+ // Therefore, compared to the same function in solana-clap-utils,
540
+ // `signer_from_path` in solana-clap-v3-utils errors early when `path` is a
541
+ // valid pubkey, but `SIGNER_ARG.name` is not specified in the args.
542
+ // This function behaves exactly as `signer_from_path` from solana-clap-utils by
543
+ // catching this special case.
543
544
fn signer_from_path (
544
545
matches : & ArgMatches ,
545
546
path : & str ,
You can’t perform that action at this time.
0 commit comments