Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-wallet.cpp
// Copyright (c) 2016-2018 The Bitcoin Core developers | // Copyright (c) 2016-2018 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include <config/bitcoin-config.h> | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <chainparamsbase.h> | #include <chainparamsbase.h> | ||||
#include <currencyunit.h> | |||||
#include <logging.h> | #include <logging.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/translation.h> | #include <util/translation.h> | ||||
#include <wallet/wallettool.h> | #include <wallet/wallettool.h> | ||||
#include <functional> | #include <functional> | ||||
const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr; | const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr; | ||||
static void SetupWalletToolArgs(ArgsManager &argsman) { | static void SetupWalletToolArgs(ArgsManager &argsman) { | ||||
SetupHelpOptions(argsman); | SetupHelpOptions(argsman); | ||||
SetupChainParamsBaseOptions(argsman); | SetupChainParamsBaseOptions(argsman); | ||||
SetupCurrencyUnitOptions(argsman); | |||||
argsman.AddArg("-datadir=<dir>", "Specify data directory", | argsman.AddArg("-datadir=<dir>", "Specify data directory", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS); | ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS); | ||||
argsman.AddArg("-wallet=<wallet-name>", "Specify wallet name", | argsman.AddArg("-wallet=<wallet-name>", "Specify wallet name", | ||||
ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, | ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, | ||||
OptionsCategory::OPTIONS); | OptionsCategory::OPTIONS); | ||||
argsman.AddArg("-debug=<category>", | argsman.AddArg("-debug=<category>", | ||||
"Output debugging information (default: 0).", | "Output debugging information (default: 0).", | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |