mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 22:04:44 +00:00
Handle a missing command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user