diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-09-09 12:58:23 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-09-09 12:58:23 +0000 |
| commit | 66b595011517258e3c05ea3e329f07a33bf6391f (patch) | |
| tree | e2425f07c86e5933c01173931baac2934be83bef /src/OptionHandlerFactory.cc | |
| parent | 9f540113498923155a68762ad8ba4eab71478cb6 (diff) | |
2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use LocalFilePathOptionHandler for -T and -M option.
Updated message of MSG_FILE_NOT_EXIST.
* src/OptionHandlerFactory.cc
* src/message.h
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index a714bae2..f200ec02 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -1156,12 +1156,10 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() handlers.push_back(op); } { - SharedHandle<OptionHandler> op(new DefaultOptionHandler + SharedHandle<OptionHandler> op(new LocalFilePathOptionHandler (PREF_TORRENT_FILE, TEXT_TORRENT_FILE, NO_DEFAULT_VALUE, - A2STR::NIL, - OptionHandler::REQ_ARG, 'T')); op->addTag(TAG_BASIC); op->addTag(TAG_BITTORRENT); @@ -1189,12 +1187,10 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() handlers.push_back(op); } { - SharedHandle<OptionHandler> op(new DefaultOptionHandler + SharedHandle<OptionHandler> op(new LocalFilePathOptionHandler (PREF_METALINK_FILE, TEXT_METALINK_FILE, NO_DEFAULT_VALUE, - A2STR::NIL, - OptionHandler::REQ_ARG, 'M')); op->addTag(TAG_BASIC); op->addTag(TAG_METALINK); |
