Browse Source

bitcoin-qt cannot be used as command line rpc client

0.8
Wladimir J. van der Laan 13 years ago
parent
commit
b2d1129f27
  1. 2
      src/init.cpp

2
src/init.cpp

@ -251,6 +251,7 @@ bool AppInit2(int argc, char* argv[])
fNoListen = GetBoolArg("-nolisten") || fTOR; fNoListen = GetBoolArg("-nolisten") || fTOR;
fLogTimestamps = GetBoolArg("-logtimestamps"); fLogTimestamps = GetBoolArg("-logtimestamps");
#ifndef QT_GUI
for (int i = 1; i < argc; i++) for (int i = 1; i < argc; i++)
if (!IsSwitchChar(argv[i][0])) if (!IsSwitchChar(argv[i][0]))
fCommandLine = true; fCommandLine = true;
@ -260,6 +261,7 @@ bool AppInit2(int argc, char* argv[])
int ret = CommandLineRPC(argc, argv); int ret = CommandLineRPC(argc, argv);
exit(ret); exit(ret);
} }
#endif
#ifndef __WXMSW__ #ifndef __WXMSW__
if (fDaemon) if (fDaemon)

Loading…
Cancel
Save