summaryrefslogtreecommitdiff
path: root/src/option_processing.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/option_processing.cc')
-rw-r--r--src/option_processing.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/option_processing.cc b/src/option_processing.cc
index 3dcd034e..8d8eda35 100644
--- a/src/option_processing.cc
+++ b/src/option_processing.cc
@@ -145,6 +145,7 @@ Option* createDefaultOption()
op->put(PREF_BT_REQUIRE_CRYPTO, V_FALSE);
op->put(PREF_BT_REQUEST_PEER_SPEED_LIMIT, "51200");
op->put(PREF_BT_MAX_OPEN_FILES, "100");
+ op->put(PREF_BT_SEED, V_FALSE);
op->put(PREF_QUIET, V_FALSE);
op->put(PREF_STOP, "0");
#ifdef ENABLE_ASYNC_DNS
@@ -255,7 +256,8 @@ Option* option_processing(int argc, char* const argv[])
{ PREF_BT_MIN_CRYPTO_LEVEL.c_str(), required_argument, &lopt, 30 },
{ PREF_BT_REQUIRE_CRYPTO.c_str(), required_argument, &lopt, 31 },
{ PREF_BT_REQUEST_PEER_SPEED_LIMIT.c_str(), required_argument, &lopt, 32 },
- { PREF_BT_MAX_OPEN_FILES.c_str(), required_argument, &lopt, 33},
+ { PREF_BT_MAX_OPEN_FILES.c_str(), required_argument, &lopt, 33 },
+ { PREF_BT_SEED.c_str(), optional_argument, &lopt, 34 },
#endif // ENABLE_BITTORRENT
#ifdef ENABLE_METALINK
{ PREF_METALINK_FILE.c_str(), required_argument, NULL, 'M' },
@@ -372,6 +374,9 @@ Option* option_processing(int argc, char* const argv[])
case 33:
cmdstream << PREF_BT_MAX_OPEN_FILES << "=" << optarg << "\n";
break;
+ case 34:
+ cmdstream << PREF_BT_SEED << "=" << toBoolArg(optarg) << "\n";
+ break;
case 100:
cmdstream << PREF_METALINK_VERSION << "=" << optarg << "\n";
break;