Add --jwt-secret-path to lcli mock-el (#8864)

Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
Jimmy Chen
2026-02-21 01:22:13 +11:00
committed by GitHub
parent 8d4af658bd
commit 48071b7ae7
2 changed files with 31 additions and 5 deletions

View File

@@ -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")