doc: add bitcoin-cli man description

This commit is contained in:
willcl-ark 2024-03-21 09:17:48 +00:00
parent 09abccfa77
commit d8c0bb23ef
No known key found for this signature in database
GPG key ID: CE6EC49945C17EA6

View file

@ -151,10 +151,16 @@ static int AppInitRPC(int argc, char* argv[])
strUsage += FormatParagraph(LicenseInfo()); strUsage += FormatParagraph(LicenseInfo());
} else { } else {
strUsage += "\n" strUsage += "\n"
"Usage: bitcoin-cli [options] <command> [params] Send command to " CLIENT_NAME "\n" "The bitcoin-cli utility provides a command line interface to interact with a " CLIENT_NAME " RPC server.\n"
"or: bitcoin-cli [options] -named <command> [name=value]... Send command to " CLIENT_NAME " (with named arguments)\n" "\nIt can be used to query network information, manage wallets, create or broadcast transactions, and control the " CLIENT_NAME " server.\n"
"or: bitcoin-cli [options] help List commands\n" "\nUse the \"help\" command to list all commands. Use \"help <command>\" to show help for that command.\n"
"or: bitcoin-cli [options] help <command> Get help for a command\n"; "The -named option allows you to specify parameters using the key=value format, eliminating the need to pass unused positional parameters.\n"
"\n"
"Usage: bitcoin-cli [options] <command> [params]\n"
"or: bitcoin-cli [options] -named <command> [name=value]...\n"
"or: bitcoin-cli [options] help\n"
"or: bitcoin-cli [options] help <command>\n"
"\n";
strUsage += "\n" + gArgs.GetHelpMessage(); strUsage += "\n" + gArgs.GetHelpMessage();
} }