diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-23 13:59:03 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-23 13:59:03 +0000 |
| commit | b2fbe2c896a8588f09b8f0339e215c5fc2bb04a2 (patch) | |
| tree | d6b512c08e332d37b187dd2edbf6b9accfe71413 /src/OptionHandlerFactory.cc | |
| parent | 752234ae66f5f3ad309a491ff7ff57687f9b2c1a (diff) | |
2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made --continue, --daemon, --no-conf, --no-netrc and --show-files
option take optional argument.
* doc/aria2c.1.txt
* src/OptionHandlerFactory.cc
* src/usage_text.h
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 375a657b..d1120ad0 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -144,8 +144,8 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() SharedHandle<OptionHandler> op(new BooleanOptionHandler (PREF_CONTINUE, TEXT_CONTINUE, - A2_V_FALSE, // TODO ommit? - OptionHandler::NO_ARG, + A2_V_FALSE, + OptionHandler::OPT_ARG, 'c')); op->addTag(TAG_BASIC); op->addTag(TAG_FTP); @@ -157,8 +157,8 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() (PREF_DAEMON, TEXT_DAEMON, A2_V_FALSE, - OptionHandler::NO_ARG, - 'D')); // TODO ommit? + OptionHandler::OPT_ARG, + 'D')); op->addTag(TAG_ADVANCED); handlers.push_back(op); } @@ -416,7 +416,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() (PREF_NO_CONF, TEXT_NO_CONF, A2_V_FALSE, - OptionHandler::NO_ARG)); + OptionHandler::OPT_ARG)); op->addTag(TAG_ADVANCED); handlers.push_back(op); } @@ -653,8 +653,8 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() SharedHandle<OptionHandler> op(new BooleanOptionHandler (PREF_NO_NETRC, TEXT_NO_NETRC, - A2_V_FALSE, // TODO ommit? - OptionHandler::NO_ARG, + A2_V_FALSE, + OptionHandler::OPT_ARG, 'n')); op->addTag(TAG_FTP); op->addTag(TAG_HTTP); @@ -1138,8 +1138,8 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() SharedHandle<OptionHandler> op(new BooleanOptionHandler (PREF_SHOW_FILES, TEXT_SHOW_FILES, - A2_V_FALSE, // TODO ommit? - OptionHandler::NO_ARG, + A2_V_FALSE, + OptionHandler::OPT_ARG, 'S')); op->addTag(TAG_BASIC); op->addTag(TAG_BITTORRENT); |
