diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-05-14 22:46:04 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-05-14 22:52:54 +0900 |
| commit | 49b032800fa6f509b2bcbeab3e401d06e84a2c5a (patch) | |
| tree | 7ee572757c50484d9a42f3a23e376899c6aa5d18 /src/OptionHandlerFactory.cc | |
| parent | ed589ab0349b8ce020c5a7872ce1ac3603ba8557 (diff) | |
Added --metalink-base-uri option.
--metalink-uri option specifies base URI to resolve relative URI in
metalink file stored in local disk. If URI points to a directory, URI
must end with '/'.
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 4e8d3ed3..f518adb5 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -1693,6 +1693,14 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() handlers.push_back(op); } { + SharedHandle<OptionHandler> op(new DefaultOptionHandler + (PREF_METALINK_BASE_URI, + TEXT_METALINK_BASE_URI, + NO_DEFAULT_VALUE)); + op->addTag(TAG_METALINK); + handlers.push_back(op); + } + { SharedHandle<OptionHandler> op(new BooleanOptionHandler (PREF_METALINK_ENABLE_UNIQUE_PROTOCOL, TEXT_METALINK_ENABLE_UNIQUE_PROTOCOL, |
