Change DB Manager Clap usage to derive (#5898)

* implement clap derive for the db manager

* tweak some clap configs

* make cli local

* add global to help flag

* fmt

* Merge branch 'unstable' of https://github.com/sigp/lighthouse into HEAD

* merge

* add enum constraints to flag
This commit is contained in:
Eitan Seri-Levi
2024-07-12 07:52:09 +01:00
committed by GitHub
parent 7697c127f1
commit b7b5dd7ec9
9 changed files with 349 additions and 287 deletions

14
Cargo.lock generated
View File

@@ -1340,6 +1340,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0"
dependencies = [
"clap_builder",
"clap_derive",
]
[[package]]
@@ -1355,6 +1356,18 @@ dependencies = [
"terminal_size",
]
[[package]]
name = "clap_derive"
version = "4.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64"
dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
"syn 2.0.66",
]
[[package]]
name = "clap_lex"
version = "0.7.0"
@@ -1824,6 +1837,7 @@ dependencies = [
"clap_utils",
"environment",
"hex",
"serde",
"slog",
"store",
"strum",