From 0d720cc3d8265bd95497d9e73cecb0f00bb94383 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 8 May 2020 09:27:38 +0100 Subject: [PATCH] bin: ch-remote: Ensure ch-remote supports syntax it advertises The ch-remote usage says: OPTIONS: --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 --- src/bin/ch-remote.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/ch-remote.rs b/src/bin/ch-remote.rs index 5ae124d47..1fc2afc5a 100644 --- a/src/bin/ch-remote.rs +++ b/src/bin/ch-remote.rs @@ -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(