mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
doc: add bitcoin-wallet man description
This commit is contained in:
parent
d8c0bb23ef
commit
3f9a516832
1 changed files with 7 additions and 6 deletions
|
@ -61,17 +61,18 @@ static std::optional<int> WalletAppInit(ArgsManager& args, int argc, char* argv[
|
||||||
}
|
}
|
||||||
const bool missing_args{argc < 2};
|
const bool missing_args{argc < 2};
|
||||||
if (missing_args || HelpRequested(args) || args.IsArgSet("-version")) {
|
if (missing_args || HelpRequested(args) || args.IsArgSet("-version")) {
|
||||||
std::string strUsage = strprintf("%s bitcoin-wallet version", CLIENT_NAME) + " " + FormatFullVersion() + "\n";
|
std::string strUsage = strprintf("%s bitcoin-wallet utility version", CLIENT_NAME) + " " + FormatFullVersion() + "\n";
|
||||||
|
|
||||||
if (args.IsArgSet("-version")) {
|
if (args.IsArgSet("-version")) {
|
||||||
strUsage += FormatParagraph(LicenseInfo());
|
strUsage += FormatParagraph(LicenseInfo());
|
||||||
} else {
|
} else {
|
||||||
strUsage += "\n"
|
strUsage += "\n"
|
||||||
"bitcoin-wallet is an offline tool for creating and interacting with " CLIENT_NAME " wallet files.\n"
|
"bitcoin-wallet is an offline tool for creating and interacting with " CLIENT_NAME " wallet files.\n\n"
|
||||||
"By default bitcoin-wallet will act on wallets in the default mainnet wallet directory in the datadir.\n"
|
"By default bitcoin-wallet will act on wallets in the default mainnet wallet directory in the datadir.\n\n"
|
||||||
"To change the target wallet, use the -datadir, -wallet and -regtest/-signet/-testnet/-testnet4 arguments.\n\n"
|
"To change the target wallet, use the -datadir, -wallet and -regtest / -signet / -testnet arguments.\n"
|
||||||
"Usage:\n"
|
"\n"
|
||||||
" bitcoin-wallet [options] <command>\n";
|
"Usage: bitcoin-wallet [options] <command>\n"
|
||||||
|
"\n";
|
||||||
strUsage += "\n" + args.GetHelpMessage();
|
strUsage += "\n" + args.GetHelpMessage();
|
||||||
}
|
}
|
||||||
tfm::format(std::cout, "%s", strUsage);
|
tfm::format(std::cout, "%s", strUsage);
|
||||||
|
|
Loading…
Add table
Reference in a new issue