From fa2c72dda09f9b51332f6c7953ae81e573cc834f Mon Sep 17 00:00:00 2001 From: MacroFake Date: Tue, 13 Sep 2022 13:38:37 +0200 Subject: rpc: Set RPCArg options with designated initializers --- src/rpc/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rpc/server.cpp') diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index e9987d73be..ff4ce9866e 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -170,7 +170,7 @@ static RPCHelpMan stop() // to the client (intended for testing) "\nRequest a graceful shutdown of " PACKAGE_NAME ".", { - {"wait", RPCArg::Type::NUM, RPCArg::Optional::OMITTED_NAMED_ARG, "how long to wait in ms", "", {}, /*hidden=*/true}, + {"wait", RPCArg::Type::NUM, RPCArg::Optional::OMITTED_NAMED_ARG, "how long to wait in ms", RPCArgOptions{.hidden=true}}, }, RPCResult{RPCResult::Type::STR, "", "A string with the content '" + RESULT + "'"}, RPCExamples{""}, -- cgit v1.2.3