Modify bn CLI to parse eth2_testnet_dir

This commit is contained in:
Paul Hauner
2019-11-24 20:55:07 +11:00
parent 7dba4841dc
commit f3d02cf493
6 changed files with 58 additions and 13 deletions

View File

@@ -306,16 +306,16 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
.help("A file from which to read the state"))
)
/*
* `sigp`
* `eth1`
*
* Connect to a Sigma Prime testnet.
*/
.subcommand(SubCommand::with_name("sigp")
.about("Connect to a Sigma Prime testnet on Goerli.")
.arg(Arg::with_name("file")
.value_name("JSON_FILE")
.required(true)
.help("A sigma_prime_testnet.json file"))
.subcommand(SubCommand::with_name("eth1")
.about("Connect to a testnet defined by an eth2_testnet directory.")
.arg(Arg::with_name("directory")
.value_name("DIRECTORY")
.index(1)
.help("A directory generated by lcli. Defaults to ~/.lighthouse/testnet. See lcli testnet --help"))
)
/*
* `prysm`