aboutsummaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2010-10-19 14:17:18 -0400
committerGavin Andresen <[email protected]>2010-10-19 14:17:18 -0400
commitd1e4a866adc92fd456c0a3139dcaefeb47b8c025 (patch)
tree0ec5e0817784154794dd9b43695cf0b72291406c /init.cpp
parentMerge remote branch 'refs/remotes/svn/trunk' into svn (diff)
parentGavin's TEST network as -testnet switch, misc fixes (diff)
downloaddiscoin-d1e4a866adc92fd456c0a3139dcaefeb47b8c025.tar.xz
discoin-d1e4a866adc92fd456c0a3139dcaefeb47b8c025.zip
Merge remote branch 'refs/remotes/svn/trunk' into svn
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp38
1 files changed, 22 insertions, 16 deletions
diff --git a/init.cpp b/init.cpp
index 63ebfb0ad..98410d188 100644
--- a/init.cpp
+++ b/init.cpp
@@ -165,22 +165,22 @@ bool AppInit2(int argc, char* argv[])
" bitcoin [options] help \t\t " + _("List commands\n") +
" bitcoin [options] help <command> \t\t " + _("Get help for a command\n") +
_("Options:\n") +
- " -conf=<file> \t " + _("Specify configuration file (default: bitcoin.conf)\n") +
- " -gen \t " + _("Generate coins\n") +
- " -gen=0 \t " + _("Don't generate coins\n") +
- " -min \t " + _("Start minimized\n") +
- " -datadir=<dir> \t " + _("Specify data directory\n") +
- " -proxy=<ip:port> \t " + _("Connect through socks4 proxy\n") +
- " -addnode=<ip> \t " + _("Add a node to connect to\n") +
- " -connect=<ip> \t " + _("Connect only to the specified node\n") +
- " -server \t " + _("Accept command line and JSON-RPC commands\n") +
- " -daemon \t " + _("Run in the background as a daemon and accept commands\n") +
- " -rpcuser=<user> \t " + _("Username for JSON-RPC connections\n") +
- " -rpcpassword=<pw>\t " + _("Password for JSON-RPC connections\n") +
- " -rpcport=<port> \t " + _("Listen for JSON-RPC connections on <port>\n") +
- " -rpcallowip=<ip> \t " + _("Allow JSON-RPC connections from specified IP address\n") +
- " -rpcconnect=<ip> \t " + _("Send commands to node running on <ip>\n") +
- " -? \t " + _("This help message\n");
+ " -conf=<file> \t\t " + _("Specify configuration file (default: bitcoin.conf)\n") +
+ " -gen \t\t " + _("Generate coins\n") +
+ " -gen=0 \t\t " + _("Don't generate coins\n") +
+ " -min \t\t " + _("Start minimized\n") +
+ " -datadir=<dir> \t\t " + _("Specify data directory\n") +
+ " -proxy=<ip:port> \t " + _("Connect through socks4 proxy\n") +
+ " -addnode=<ip> \t " + _("Add a node to connect to\n") +
+ " -connect=<ip> \t\t " + _("Connect only to the specified node\n") +
+ " -server \t\t " + _("Accept command line and JSON-RPC commands\n") +
+ " -daemon \t\t " + _("Run in the background as a daemon and accept commands\n") +
+ " -testnet \t\t " + _("Use the test network\n") +
+ " -rpcuser=<user> \t " + _("Username for JSON-RPC connections\n") +
+ " -rpcpassword=<pw>\t " + _("Password for JSON-RPC connections\n") +
+ " -rpcport=<port> \t\t " + _("Listen for JSON-RPC connections on <port>\n") +
+ " -rpcallowip=<ip> \t\t " + _("Allow JSON-RPC connections from specified IP address\n") +
+ " -rpcconnect=<ip> \t " + _("Send commands to node running on <ip>\n");
#ifdef USE_SSL
strUsage += string() +
@@ -191,6 +191,9 @@ bool AppInit2(int argc, char* argv[])
" -rpcsslciphers=<ciphers> \t " + _("Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n");
#endif
+ strUsage += string() +
+ " -? \t\t " + _("This help message\n");
+
#if defined(__WXMSW__) && defined(GUI)
// Tabs make the columns line up in the message box
wxMessageBox(strUsage, "Bitcoin", wxOK);
@@ -208,6 +211,9 @@ bool AppInit2(int argc, char* argv[])
if (mapArgs.count("-printtodebugger"))
fPrintToDebugger = true;
+ if (mapArgs.count("-testnet"))
+ fTestNet = true;
+
if (fCommandLine)
{
int ret = CommandLineRPC(argc, argv);