mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-07 22:24:34 +01:00
Merge bitcoin/bitcoin#29686: Update manpage descriptions
47f50c7af5doc: add bitcoin-qt man description (willcl-ark)40b82e3ab0doc: add bitcoin-util man description (willcl-ark)a7bf80f3a2doc: add bitcoin-tx man description (willcl-ark)3f9a516832doc: add bitcoin-wallet man description (willcl-ark)d8c0bb23efdoc: add bitcoin-cli man description (willcl-ark)09abccfa77doc: add bitcoind man description (willcl-ark) Pull request description: Closes #29552 Add better descriptions to help string for all binaries. Use format which is correctly detected by help2man when generating manpages. Examples: Before:  After:  Demonstration using `bitcoin-cli` also highlights removal of inline usage explanations which were being incorrectly formatted by `help2man`. This results in the following changed format to `bitcoin-cli --help`:  ACKs for top commit: achow101: ACK47f50c7af5tdb3: re ACK47f50c7af5rkrux: tACK47f50c7af5maflcko: ACK47f50c7af5📠 Tree-SHA512: 124a8877077b7d47758ea970949d472b2444e3ba65d2bfeb47ebbdb1f5f8d3bf0abe2c88714bb6c92ba0e36583f0b36aa6f016ea88b65f011c610096ea872182
This commit is contained in:
@@ -152,10 +152,16 @@ static int AppInitRPC(int argc, char* argv[])
|
||||
strUsage += FormatParagraph(LicenseInfo());
|
||||
} else {
|
||||
strUsage += "\n"
|
||||
"Usage: bitcoin-cli [options] <command> [params] Send command to " CLIENT_NAME "\n"
|
||||
"or: bitcoin-cli [options] -named <command> [name=value]... Send command to " CLIENT_NAME " (with named arguments)\n"
|
||||
"or: bitcoin-cli [options] help List commands\n"
|
||||
"or: bitcoin-cli [options] help <command> Get help for a command\n";
|
||||
"The bitcoin-cli utility provides a command line interface to interact with a " CLIENT_NAME " RPC server.\n"
|
||||
"\nIt can be used to query network information, manage wallets, create or broadcast transactions, and control the " CLIENT_NAME " server.\n"
|
||||
"\nUse the \"help\" command to list all commands. Use \"help <command>\" to show help for that 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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user