From d8c0bb23ef83f207394a3f714f4498ab8abf88c1 Mon Sep 17 00:00:00 2001 From: willcl-ark Date: Thu, 21 Mar 2024 09:17:48 +0000 Subject: [PATCH] doc: add bitcoin-cli man description --- src/bitcoin-cli.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 8a4c1746161..65d9c643228 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -151,10 +151,16 @@ static int AppInitRPC(int argc, char* argv[]) strUsage += FormatParagraph(LicenseInfo()); } else { strUsage += "\n" - "Usage: bitcoin-cli [options] [params] Send command to " CLIENT_NAME "\n" - "or: bitcoin-cli [options] -named [name=value]... Send command to " CLIENT_NAME " (with named arguments)\n" - "or: bitcoin-cli [options] help List commands\n" - "or: bitcoin-cli [options] help 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 \" 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] [params]\n" + "or: bitcoin-cli [options] -named [name=value]...\n" + "or: bitcoin-cli [options] help\n" + "or: bitcoin-cli [options] help \n" + "\n"; strUsage += "\n" + gArgs.GetHelpMessage(); }