rpc: Keep default argument value in correct type

This commit is contained in:
João Barbosa
2021-04-14 15:01:00 +01:00
parent a12962ca89
commit f81ef4303e
10 changed files with 187 additions and 183 deletions

View File

@@ -135,7 +135,7 @@ static RPCHelpMan help()
return RPCHelpMan{"help",
"\nList all commands, or get help for a specified command.\n",
{
{"command", RPCArg::Type::STR, /* default */ "all commands", "The command to get help on"},
{"command", RPCArg::Type::STR, RPCArg::DefaultHint{"all commands"}, "The command to get help on"},
},
{
RPCResult{RPCResult::Type::STR, "", "The help text"},