@@ -103,25 +103,25 @@ static void WalletShowInfo(CWallet* wallet_instance)
103
103
tfm::format (std::cout, " Address Book: %zu\n " , wallet_instance->m_address_book .size ());
104
104
}
105
105
106
- bool ExecuteWalletToolFunc (const std::string& command, const std::string& name)
106
+ bool ExecuteWalletToolFunc (const ArgsManager& args, const std::string& command, const std::string& name)
107
107
{
108
108
fs::path path = fs::absolute (name, GetWalletDir ());
109
109
110
110
// -format is only allowed with createfromdump. Disallow it for all other commands.
111
- if (gArgs .IsArgSet (" -format" ) && command != " createfromdump" ) {
111
+ if (args .IsArgSet (" -format" ) && command != " createfromdump" ) {
112
112
tfm::format (std::cerr, " The -format option can only be used with the \" createfromdump\" command.\n " );
113
113
return false ;
114
114
}
115
115
// -dumpfile is only allowed with dump and createfromdump. Disallow it for all other commands.
116
- if (gArgs .IsArgSet (" -dumpfile" ) && command != " dump" && command != " createfromdump" ) {
116
+ if (args .IsArgSet (" -dumpfile" ) && command != " dump" && command != " createfromdump" ) {
117
117
tfm::format (std::cerr, " The -dumpfile option can only be used with the \" dump\" and \" createfromdump\" commands.\n " );
118
118
return false ;
119
119
}
120
120
121
121
if (command == " create" ) {
122
122
DatabaseOptions options;
123
123
options.require_create = true ;
124
- if (gArgs .GetBoolArg (" -descriptors" , false )) {
124
+ if (args .GetBoolArg (" -descriptors" , false )) {
125
125
options.create_flags |= WALLET_FLAG_DESCRIPTORS;
126
126
options.require_format = DatabaseFormat::SQLITE;
127
127
}
0 commit comments