mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Add requires --http when using vc subcommands --http-port (#7405)
Prevent running `lighthouse vc --http-port <PORT>` without `--http`. Issue: https://github.com/sigp/lighthouse/issues/7402 Added requires `--http` when using `lighthouse vc --http-port <PORT>`. Implemented a test code for this issue.
This commit is contained in:
@@ -219,6 +219,7 @@ pub struct ValidatorClient {
|
||||
|
||||
#[clap(
|
||||
long,
|
||||
requires = "http",
|
||||
value_name = "PORT",
|
||||
default_value_t = 5062,
|
||||
help = "Set the listen TCP port for the RESTful HTTP API server.",
|
||||
|
||||
Reference in New Issue
Block a user