forked from lthn/blockchain
fixed minor issues related to arg_descriptor
This commit is contained in:
parent
a8fe3f2797
commit
631c1fa921
3 changed files with 9 additions and 4 deletions
|
|
@ -35,9 +35,9 @@ namespace command_line
|
|||
const arg_descriptor<bool> arg_enable_offers_service ( "enable-offers-service", "Enables marketplace feature", false);
|
||||
const arg_descriptor<std::string> arg_db_engine ( "db-engine", "Specify database engine for storage. May be \"lmdb\"(default) or \"mdbx\"", ARG_DB_ENGINE_LMDB );
|
||||
|
||||
const arg_descriptor<bool> arg_no_predownload ( "no-predownload", "Do not pre-download blockchain database", );
|
||||
const arg_descriptor<bool> arg_force_predownload ( "force-predownload", "Pre-download blockchain database regardless of it's status", );
|
||||
const arg_descriptor<bool> arg_validate_predownload ( "validate-predownload", "Paranoid mode, re-validate each block from pre-downloaded database and rebuild own database", );
|
||||
const arg_descriptor<bool> arg_no_predownload ( "no-predownload", "Do not pre-download blockchain database");
|
||||
const arg_descriptor<bool> arg_force_predownload ( "force-predownload", "Pre-download blockchain database regardless of it's status");
|
||||
const arg_descriptor<bool> arg_validate_predownload ( "validate-predownload", "Paranoid mode, re-validate each block from pre-downloaded database and rebuild own database");
|
||||
const arg_descriptor<std::string> arg_predownload_link ( "predownload-link", "Override url for blockchain database pre-downloading");
|
||||
|
||||
const arg_descriptor<std::string> arg_deeplink ( "deeplink-params", "Deeplink parameter, in that case app just forward params to running app");
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@ namespace command_line
|
|||
template<typename T>
|
||||
struct arg_descriptor<std::vector<T>, false>
|
||||
{
|
||||
arg_descriptor(const char* _name, const char* _description) :
|
||||
name(_name),
|
||||
description(_description)
|
||||
{}
|
||||
|
||||
typedef std::vector<T> value_type;
|
||||
|
||||
const char* name;
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ int main(int argc, char* argv[])
|
|||
|
||||
|
||||
arg_market_disable.default_value = true;
|
||||
arg_market_disable.not_use_default = false;
|
||||
arg_market_disable.use_default = true;
|
||||
|
||||
currency::core::init_options(desc_cmd_sett);
|
||||
currency::core_rpc_server::init_options(desc_cmd_sett);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue