diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -115,7 +115,8 @@
gArgs.AddArg("-walletdir=
",
"Specify directory to hold wallets (default: "
"/wallets if it exists, otherwise )",
- ArgsManager::ALLOW_ANY, OptionsCategory::WALLET);
+ ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY,
+ OptionsCategory::WALLET);
#if defined(HAVE_SYSTEM)
gArgs.AddArg("-walletnotify=",
"Execute command when a wallet transaction changes (%s in cmd "