mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
bin: ch-remote: Ensure ch-remote supports syntax it advertises
The ch-remote usage says:
OPTIONS:
--api-socket <api-socket> HTTP API socket path (UNIX domain socket).
However it doesn't seem to actually accept that syntax, instead
requiring "--api-socket=". This may be a clap bug however it is resolved
by setting the number of arguments requires to exactly one. Which is
also the actual correct number.
Fixes: #1117
Fixes: #1116
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -402,7 +402,7 @@ fn main() {
|
||||
.long("api-socket")
|
||||
.help("HTTP API socket path (UNIX domain socket).")
|
||||
.takes_value(true)
|
||||
.min_values(1)
|
||||
.number_of_values(1)
|
||||
.required(true),
|
||||
)
|
||||
.subcommand(
|
||||
|
||||
Reference in New Issue
Block a user