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/OptionHandlerFactory.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/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index c5bde6f2..1d8d92b6 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -516,6 +516,16 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() } { SharedHandle<OptionHandler> op(new BooleanOptionHandler + (PREF_PAUSE, + TEXT_PAUSE, + A2_V_FALSE, + OptionHandler::OPT_ARG)); + op->addTag(TAG_ADVANCED); + op->addTag(TAG_RPC); + handlers.push_back(op); + } + { + SharedHandle<OptionHandler> op(new BooleanOptionHandler (PREF_QUIET, TEXT_QUIET, A2_V_FALSE, |
