diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-06-16 21:37:15 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-06-16 21:37:15 +0900 |
| commit | d5c2ef4ce99db07bedd6313683ac3ff0f2052400 (patch) | |
| tree | 3d64d7173f297dd027ba2d2bca9c5f5c30750f3a /src/main.cc | |
| parent | c0d1e981338f9c5f94d2ac600acff5efd340e495 (diff) | |
Added --pause option.
This option pauses download after added. This option is effective only
when --enable-rpc=true is given. When --save-session option is used
and there are paused downloads, they are saved with --pause=true so
that it will become paused state when the session is recovered.
Diffstat (limited to 'src/main.cc')
| -rw-r--r-- | src/main.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index 57100342..03f464f5 100644 --- a/src/main.cc +++ b/src/main.cc @@ -267,6 +267,7 @@ error_code::Value main(int argc, char* argv[]) op->remove(PREF_INPUT_FILE); op->remove(PREF_INDEX_OUT); op->remove(PREF_SELECT_FILE); + op->remove(PREF_PAUSE); if(!op->getAsBool(PREF_ENABLE_RPC) && requestGroups.empty()) { std::cout << MSG_NO_FILES_TO_DOWNLOAD << std::endl; } else { |
