From e584ba5e44812511a388fb2a9b81c8ca71535377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ag=C3=BCero?= Date: Thu, 21 Mar 2024 22:10:19 +0100 Subject: [PATCH] Warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Agüero --- src/cmd/service_main.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/cmd/service_main.cc b/src/cmd/service_main.cc index e520f2e7..9b7cadc8 100644 --- a/src/cmd/service_main.cc +++ b/src/cmd/service_main.cc @@ -103,14 +103,11 @@ void addServiceFlags(CLI::App &_app) { auto opt = std::make_shared(); - auto serviceOpt = _app.add_option("-s,--service", + auto serviceOpt = _app.add_option("-s,--service", opt->service, "Name of a service."); - _app.add_option("--reqtype", - opt->reqType, "Type of a request."); - _app.add_option("--reptype", - opt->repType, "Type of a response."); - _app.add_option("--timeout", - opt->timeout, "Timeout in milliseconds."); + _app.add_option("--reqtype", opt->reqType, "Type of a request."); + _app.add_option("--reptype", opt->repType, "Type of a response."); + _app.add_option("--timeout", opt->timeout, "Timeout in milliseconds."); auto command = _app.add_option_group("command", "Command to be executed."); @@ -141,7 +138,7 @@ the same used by Protobuf DebugString(). E.g.: --req 'data: "Hello"' )") ->needs(serviceOpt) - ->expected(0,1); + ->expected(0, 1); _app.callback([opt](){runServiceCommand(*opt); }); }