فهرست منبع

2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	Added help message for -R option.
	* src/HelpItemFactory.cc
	* src/usage_text.h
Tatsuhiro Tsujikawa 17 سال پیش
والد
کامیت
a91664cef8
3فایلهای تغییر یافته به همراه18 افزوده شده و 0 حذف شده
  1. 6 0
      ChangeLog
  2. 8 0
      src/HelpItemFactory.cc
  3. 4 0
      src/usage_text.h

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2008-09-08  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	Added help message for -R option.
+	* src/HelpItemFactory.cc
+	* src/usage_text.h
+
 2008-09-08  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 2008-09-08  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 
 	Added the message that the time is in local time zone.
 	Added the message that the time is in local time zone.

+ 8 - 0
src/HelpItemFactory.cc

@@ -511,6 +511,14 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op)
 		    V_WARN.c_str(), V_ERROR.c_str()).str());
 		    V_WARN.c_str(), V_ERROR.c_str()).str());
     tc->addItem(item);
     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));
     HelpItemHandle item(new HelpItem("help", TEXT_HELP, TAG_BASIC));
     item->setAvailableValues
     item->setAvailableValues

+ 4 - 0
src/usage_text.h

@@ -356,3 +356,7 @@ _(" --summary-interval=SEC       Set interval to output download progress summar
   "                              Setting 0 suppresses the output.")
   "                              Setting 0 suppresses the output.")
 #define TEXT_LOG_LEVEL \
 #define TEXT_LOG_LEVEL \
 _(" --log-level=LEVEL            Set log level to output.")
 _(" --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.")