Remove CLI conflict for secrets-dir and datadir (#7265)

Redo this PR:

- https://github.com/sigp/lighthouse/pull/5480

After a regression during the switch to `clap_derive`.

- https://github.com/sigp/lighthouse/pull/6300


  - Remove `conflicts_with`
- Add test to prevent future regression
This commit is contained in:
Michael Sproul
2025-04-06 19:08:59 +10:00
committed by GitHub
parent 591fb7df14
commit e77fb01a06
2 changed files with 16 additions and 1 deletions

View File

@@ -67,7 +67,6 @@ pub struct ValidatorClient {
#[clap(
long,
value_name = "SECRETS_DIRECTORY",
conflicts_with = "datadir",
help = "The directory which contains the password to unlock the validator \
voting keypairs. Each password should be contained in a file where the \
name is the 0x-prefixed hex representation of the validators voting public \