diff --git a/ChangeLog b/ChangeLog index 484a5935..ef0bc407 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-09-08 Tatsuhiro Tsujikawa + + Added help message for -R option. + * src/HelpItemFactory.cc + * src/usage_text.h + 2008-09-08 Tatsuhiro Tsujikawa Added the message that the time is in local time zone. diff --git a/src/HelpItemFactory.cc b/src/HelpItemFactory.cc index ee29eb6b..49264f6a 100644 --- a/src/HelpItemFactory.cc +++ b/src/HelpItemFactory.cc @@ -511,6 +511,14 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op) V_WARN.c_str(), V_ERROR.c_str()).str()); tc->addItem(item); } + { + HelpItemHandle item(new HelpItem(PREF_REMOTE_TIME, TEXT_REMOTE_TIME, + op->get(PREF_REMOTE_TIME))); + item->addTag(TAG_HTTP); + item->addTag(TAG_FTP); + item->addTag(TAG_ADVANCED); + tc->addItem(item); + } { HelpItemHandle item(new HelpItem("help", TEXT_HELP, TAG_BASIC)); item->setAvailableValues diff --git a/src/usage_text.h b/src/usage_text.h index 7a20735d..5bedfdcf 100644 --- a/src/usage_text.h +++ b/src/usage_text.h @@ -356,3 +356,7 @@ _(" --summary-interval=SEC Set interval to output download progress summar " Setting 0 suppresses the output.") #define TEXT_LOG_LEVEL \ _(" --log-level=LEVEL Set log level to output.") +#define TEXT_REMOTE_TIME \ +_(" -R, --remote-time[=true|false] Retrieve timestamp of the remote file from the\n"\ + " remote HTTP/FTP server and if it is available,\n"\ + " apply it to the local file.")