import { Command } from "commander"; import { parsePoolId, parseMnemonic, parseKeyfile, parseDesiredStake, parseNetwork, } from "./parser"; const program = new Command(); export default program .requiredOption( "-p, --poolId ", "The id of the pool the node should join.", parsePoolId ) .requiredOption( "-m, --mnemonic ", "Your mnemonic of your account.", parseMnemonic ) .requiredOption( "-k, --keyfile ", "The path to your Arweave keyfile.", parseKeyfile ) .option( "-s, --initialStake ", "Your desired stake the node should run with. [unit = $KYVE].", parseDesiredStake, "0" ) .option( "-n, --network ", "The chain id of the network. [optional, default = korellia]", parseNetwork, "korellia" ) .option( "-v, --verbose", "Run node in verbose mode. [optional, default = false]", false ) .option( "--metrics ", "Run Prometheus metrics server on localhost. [deprecated]", false ) .option( "--space ", "How much bytes the node can occupy for caching [deprecated].", "1000000000" );