We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9f1ddf commit 104d4d6Copy full SHA for 104d4d6
src/qt/rpcconsole.cpp
@@ -820,8 +820,17 @@ void RPCConsole::walletReindex()
820
void RPCConsole::buildParameterlist(QString arg)
821
{
822
// Get command-line arguments and remove the application name
823
- QStringList args = QApplication::arguments();
824
- args.removeFirst();
+ QStringList args;
+
825
+ for (const auto& [key, values] : gArgs.GetCommandLineArgs()) {
826
+ for (const auto& value : values) {
827
+ if (value.getValStr().empty()) {
828
+ args << QString::fromStdString("-" + key);
829
+ } else {
830
+ args << QString::fromStdString("-" + key + "=" + value.getValStr());
831
+ }
832
833
834
835
// Remove existing repair-options
836
args.removeAll(RESCAN1);
0 commit comments