Handle a missing command

This commit is contained in:
Paul Hauner
2022-08-29 18:28:54 +10:00
parent 47eaa50c06
commit d1aff84f83

View File

@@ -64,6 +64,7 @@ pub fn run<'a, T: EthSpec>(
(validators::CMD, Some(matches)) => {
validators::cli_run::<T>(matches, &spec, dump_config).await
}
("", _) => Err("No command supplied. See --help.".to_string()),
(unknown, _) => Err(format!(
"{} is not a valid {} command. See --help.",
unknown, CMD