diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-02-05 18:57:16 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-02-05 18:57:16 +0900 |
| commit | f2d55f0edc7173c7921dc43b8082de9f9025ab49 (patch) | |
| tree | 669739c73003feba5d2fb31089479e14057a61aa /src/OptionHandlerFactory.cc | |
| parent | b8121faf93370c9ee912452a11254bc02d825118 (diff) | |
Added --deferred-input option.
If true is given to --deferred-input option, aria2 does not read all
URIs and options from file specified by -i option at startup, but it
reads one by one when it needs later. This may reduce memory usage if
input file contains a lot of URIs to download. If false is given,
aria2 reads all URIs and options at startup. This option defaults to
false.
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index c784d58d..dad99665 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -202,6 +202,15 @@ OptionHandlerFactory::createOptionHandlers() handlers.push_back(op); } { + SharedHandle<OptionHandler> op(new BooleanOptionHandler + (PREF_DEFERRED_INPUT, + TEXT_DEFERRED_INPUT, + A2_V_FALSE, + OptionHandler::OPT_ARG)); + op->addTag(TAG_ADVANCED); + handlers.push_back(op); + } + { SharedHandle<OptionHandler> op(new DefaultOptionHandler (PREF_DIR, TEXT_DIR, |
