Allow --validator-dir to be specified after subcommands (#8329)

#3768


  Made the --validator-dir flag global so that it can be specified in any order


Co-Authored-By: Mike Jerred <mjerred.work@gmail.com>

Co-Authored-By: chonghe <44791194+chong-he@users.noreply.github.com>
This commit is contained in:
Mike Jerred
2026-04-09 06:36:45 +01:00
committed by GitHub
parent 2749e18d0e
commit 815aad3731
2 changed files with 10 additions and 9 deletions

View File

@@ -28,6 +28,7 @@ pub fn cli_app() -> Command {
"The path to search for validator directories. \
Defaults to ~/.lighthouse/{network}/validators",
)
.global(true)
.action(ArgAction::Set)
.conflicts_with("datadir"),
)