Skip to content

Commit

Permalink
Merge f8fa579 into 7483c39
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Jun 23, 2023
2 parents 7483c39 + f8fa579 commit 9725bc9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/cli/src/cmds/validator/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import {PersistedKeysBackend} from "./keymanager/persistedKeys.js";

/* eslint-disable no-console */

export const importCmd: CliCommand<IValidatorCliArgs, GlobalArgs> = {
type ValidatorImportArgs = Pick<IValidatorCliArgs, "importKeystores" | "importKeystoresPassword">;

const {importKeystores, importKeystoresPassword} = validatorOptions;

export const importCmd: CliCommand<ValidatorImportArgs, IValidatorCliArgs & GlobalArgs> = {
command: "import",

describe:
Expand All @@ -29,12 +33,11 @@ Ethereum Foundation utility.",
// Note: re-uses `--importKeystores` and `--importKeystoresPassword` from root validator command options

options: {
...validatorOptions,

importKeystores: {
...validatorOptions.importKeystores,
...importKeystores,
requiresArg: true,
},
importKeystoresPassword,
},

handler: async (args) => {
Expand Down

0 comments on commit 9725bc9

Please sign in to comment.