diff --git a/Cargo.toml b/Cargo.toml index d081ee74f7..0a98bb8dd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ members = [ "beacon_node/version", "beacon_node/beacon_chain", "tests/ef_tests", - "tests/cli_util", + "tests/lcli", "protos", "validator_client", "account_manager", diff --git a/tests/cli_util/.gitignore b/tests/lcli/.gitignore similarity index 100% rename from tests/cli_util/.gitignore rename to tests/lcli/.gitignore diff --git a/tests/cli_util/Cargo.toml b/tests/lcli/Cargo.toml similarity index 87% rename from tests/cli_util/Cargo.toml rename to tests/lcli/Cargo.toml index 6fd2119705..3322d8ccac 100644 --- a/tests/cli_util/Cargo.toml +++ b/tests/lcli/Cargo.toml @@ -1,5 +1,6 @@ [package] -name = "cli_util" +name = "lcli" +description = "Lighthouse CLI (modeled after zcli)" version = "0.1.0" authors = ["Paul Hauner "] edition = "2018" diff --git a/tests/cli_util/src/main.rs b/tests/lcli/src/main.rs similarity index 95% rename from tests/cli_util/src/main.rs rename to tests/lcli/src/main.rs index ef2848578e..63f01c671b 100644 --- a/tests/cli_util/src/main.rs +++ b/tests/lcli/src/main.rs @@ -15,10 +15,13 @@ use types::{test_utils::TestingBeaconStateBuilder, EthSpec, MainnetEthSpec, Mini fn main() { simple_logger::init().expect("logger should initialize"); - let matches = App::new("Lighthouse Testing CLI Tool") + let matches = App::new("Lighthouse CLI Tool") .version("0.1.0") .author("Paul Hauner ") - .about("Performs various testing-related tasks.") + .about( + "Performs various testing-related tasks, modelled after zcli. \ + by @protolambda.", + ) .subcommand( SubCommand::with_name("genesis_yaml") .about("Generates a genesis YAML file") @@ -89,7 +92,7 @@ fn main() { ) .subcommand( SubCommand::with_name("pretty-hex") - .about("Parses some SSZ as encoded as ASCII 0x-prefixed hex") + .about("Parses SSZ encoded as ASCII 0x-prefixed hex") .version("0.1.0") .author("Paul Hauner ") .arg( @@ -154,7 +157,7 @@ fn main() { ("pretty-hex", Some(matches)) => { run_parse_hex(matches).unwrap_or_else(|e| error!("Failed to pretty print hex: {}", e)) } - (other, _) => error!("Unknown subcommand supplied: {}", other), + (other, _) => error!("Unknown subcommand {}. See --help.", other), } } diff --git a/tests/cli_util/src/parse_hex.rs b/tests/lcli/src/parse_hex.rs similarity index 100% rename from tests/cli_util/src/parse_hex.rs rename to tests/lcli/src/parse_hex.rs diff --git a/tests/cli_util/src/transition_blocks.rs b/tests/lcli/src/transition_blocks.rs similarity index 100% rename from tests/cli_util/src/transition_blocks.rs rename to tests/lcli/src/transition_blocks.rs