Skip to content

Commit

Permalink
Warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
caguero committed Mar 21, 2024
1 parent b3c5c16 commit e584ba5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/cmd/service_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,11 @@ void addServiceFlags(CLI::App &_app)
{
auto opt = std::make_shared<ServiceOptions>();

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.");

Expand Down Expand Up @@ -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); });
}
Expand Down

0 comments on commit e584ba5

Please sign in to comment.