mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 07:10:46 -08:00
Merge pull request #2736
0d9c0db9Do not build against epee_readline if it was not built (Howard Chu)178014c9split off readline code into epee_readline (moneromooo-monero)a9e14a19link against readline only for monerod and wallet-wallet-{rpc,cli} (moneromooo-monero)437421cewallet: move some scoped_message_writer calls from the libs (moneromooo-monero)e89994e9wallet: rejig to avoid prompting in wallet2 (moneromooo-monero)ec5135e5move input_line from command_line to simplewallet (moneromooo-monero)082db75fmove cryptonote command line options to cryptonote_core (moneromooo-monero)
This commit is contained in:
@@ -585,11 +585,6 @@ int main(int argc, char* argv[])
|
||||
const command_line::arg_descriptor<uint64_t> arg_batch_size = {"batch-size", "", db_batch_size};
|
||||
const command_line::arg_descriptor<uint64_t> arg_pop_blocks = {"pop-blocks", "Remove blocks from end of blockchain", num_blocks};
|
||||
const command_line::arg_descriptor<bool> arg_drop_hf = {"drop-hard-fork", "Drop hard fork subdbs", false};
|
||||
const command_line::arg_descriptor<bool> arg_testnet_on = {
|
||||
"testnet"
|
||||
, "Run on testnet."
|
||||
, false
|
||||
};
|
||||
const command_line::arg_descriptor<bool> arg_count_blocks = {
|
||||
"count-blocks"
|
||||
, "Count blocks in bootstrap file and exit"
|
||||
@@ -674,8 +669,8 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
}
|
||||
|
||||
opt_testnet = command_line::get_arg(vm, arg_testnet_on);
|
||||
auto data_dir_arg = opt_testnet ? command_line::arg_testnet_data_dir : command_line::arg_data_dir;
|
||||
opt_testnet = command_line::get_arg(vm, cryptonote::arg_testnet_on);
|
||||
auto data_dir_arg = opt_testnet ? cryptonote::arg_testnet_data_dir : cryptonote::arg_data_dir;
|
||||
m_config_folder = command_line::get_arg(vm, data_dir_arg);
|
||||
db_arg_str = command_line::get_arg(vm, arg_database);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user