import { defaultOptions , IBeaconNodeOptions } from "@chainsafe/lodestar" ; import { ICliCommandOptions } from "../../util" ; export type ExecutionEngineArgs = { "execution.urls" : string [ ] ; "execution.timeout" : number ; } ; export function parseArgs ( args ) { return { urls : args [ "execution.urls" ] , timeout : args [ "execution.timeout" ] , } ; } export const options = { "execution.urls" : { description : "Urls to execution client engine API" , type : "array" , defaultDescription : defaultOptions . executionEngine . mode === "http" ? defaultOptions . executionEngine . urls . join ( " " ) : "" , group : "execution" , } , "execution.timeout" : { description : "Timeout in miliseconds for execution engine API HTTP client" , type : "number" , defaultDescription : defaultOptions . executionEngine . mode === "http" ? String ( defaultOptions . executionEngine . timeout ) : "" , group : "execution" , } , } ;