mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-28 02:03:32 +00:00
Add --jwt-secret-path to lcli mock-el (#8864)
Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
@@ -492,10 +492,20 @@ fn main() {
|
||||
.long("jwt-output-path")
|
||||
.value_name("PATH")
|
||||
.action(ArgAction::Set)
|
||||
.required(true)
|
||||
.required_unless_present("jwt-secret-path")
|
||||
.conflicts_with("jwt-secret-path")
|
||||
.help("Path to write the JWT secret.")
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("jwt-secret-path")
|
||||
.long("jwt-secret-path")
|
||||
.value_name("PATH")
|
||||
.action(ArgAction::Set)
|
||||
.help("Path to an existing hex-encoded JWT secret file. \
|
||||
When provided, this secret is used instead of the default.")
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("listen-address")
|
||||
.long("listen-address")
|
||||
|
||||
Reference in New Issue
Block a user