Merge 3c565302aa into merged_master (Bitcoin PR bitcoin/bitcoin#24409)

This commit is contained in:
Byron Hambly 2023-07-02 13:45:31 +00:00
commit 51fbed170b
13 changed files with 68 additions and 55 deletions

View file

@ -133,7 +133,10 @@ static int AppInitRPC(int argc, char* argv[])
}
if (argc < 2 || HelpRequested(gArgs) || gArgs.IsArgSet("-version")) {
std::string strUsage = PACKAGE_NAME " RPC client version " + FormatFullVersion() + "\n";
if (!gArgs.IsArgSet("-version")) {
if (gArgs.IsArgSet("-version")) {
strUsage += FormatParagraph(LicenseInfo());
} else {
strUsage += "\n"
"Usage: elements-cli [options] <command> [params] Send command to " PACKAGE_NAME "\n"
"or: elements-cli [options] -named <command> [name=value]... Send command to " PACKAGE_NAME " (with named arguments)\n"