mirror of
https://github.com/monero-project/monero.git
synced 2025-08-13 23:15:35 -04:00
options: add testnet option dependencies
This commit is contained in:
parent
c5f55bb4c0
commit
b3b2d4d20c
5 changed files with 45 additions and 19 deletions
|
@ -74,9 +74,13 @@ namespace cryptonote
|
|||
const command_line::arg_descriptor<std::string, false, true> arg_data_dir = {
|
||||
"data-dir"
|
||||
, "Specify data directory"
|
||||
, arg_testnet_on
|
||||
, (boost::filesystem::path(tools::get_default_data_dir()) / "testnet").string()
|
||||
, tools::get_default_data_dir()
|
||||
, arg_testnet_on
|
||||
, [](bool testnet, bool defaulted, std::string val) {
|
||||
if (testnet)
|
||||
return (boost::filesystem::path(val) / "testnet").string();
|
||||
return val;
|
||||
}
|
||||
};
|
||||
const command_line::arg_descriptor<bool> arg_offline = {
|
||||
"offline"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue