mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Show available types for db-type command
This commit is contained in:
parent
046ab33d1b
commit
e309055819
1 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,8 @@
|
||||||
#include "command_line.h"
|
#include "command_line.h"
|
||||||
#include <boost/algorithm/string/compare.hpp>
|
#include <boost/algorithm/string/compare.hpp>
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
#include <boost/algorithm/string/predicate.hpp>
|
||||||
|
#include <unordered_set>
|
||||||
|
#include "blockchain_db/db_types.h"
|
||||||
#include "common/i18n.h"
|
#include "common/i18n.h"
|
||||||
#include "cryptonote_config.h"
|
#include "cryptonote_config.h"
|
||||||
#include "string_tools.h"
|
#include "string_tools.h"
|
||||||
|
@ -88,9 +90,10 @@ namespace command_line
|
||||||
, "checkpoints from DNS server will be enforced"
|
, "checkpoints from DNS server will be enforced"
|
||||||
, false
|
, false
|
||||||
};
|
};
|
||||||
|
std::string arg_db_type_description = "Specify database type, available: " + boost::algorithm::join(cryptonote::blockchain_db_types, ", ");
|
||||||
const command_line::arg_descriptor<std::string> arg_db_type = {
|
const command_line::arg_descriptor<std::string> arg_db_type = {
|
||||||
"db-type"
|
"db-type"
|
||||||
, "Specify database type"
|
, arg_db_type_description.c_str()
|
||||||
, DEFAULT_DB_TYPE
|
, DEFAULT_DB_TYPE
|
||||||
};
|
};
|
||||||
const command_line::arg_descriptor<std::string> arg_db_sync_mode = {
|
const command_line::arg_descriptor<std::string> arg_db_sync_mode = {
|
||||||
|
|
Loading…
Reference in a new issue