From e309055819a8801d6caaa337d581cbb15444f291 Mon Sep 17 00:00:00 2001 From: Miguel Herranz Date: Tue, 10 Jan 2017 11:44:01 +0100 Subject: Show available types for db-type command --- src/common/command_line.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/common/command_line.cpp') diff --git a/src/common/command_line.cpp b/src/common/command_line.cpp index 28879e098..a432062a0 100644 --- a/src/common/command_line.cpp +++ b/src/common/command_line.cpp @@ -31,6 +31,8 @@ #include "command_line.h" #include #include +#include +#include "blockchain_db/db_types.h" #include "common/i18n.h" #include "cryptonote_config.h" #include "string_tools.h" @@ -88,9 +90,10 @@ namespace command_line , "checkpoints from DNS server will be enforced" , false }; + std::string arg_db_type_description = "Specify database type, available: " + boost::algorithm::join(cryptonote::blockchain_db_types, ", "); const command_line::arg_descriptor arg_db_type = { "db-type" - , "Specify database type" + , arg_db_type_description.c_str() , DEFAULT_DB_TYPE }; const command_line::arg_descriptor arg_db_sync_mode = { -- cgit v1.2.3