2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Added `https' tag to help option category.  Added https tag to
	--ca-certificate, --certificate, --check-certificate and
	--private-key option.
	* src/OptionHandlerFactory.cc
	* src/help_tags.h
	* src/option_processing.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-12-02 15:53:27 +00:00
parent 94f912ffef
commit fa882f3240
4 changed files with 23 additions and 6 deletions

View File

@ -1,3 +1,12 @@
2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added `https' tag to help option category. Added https tag to
--ca-certificate, --certificate, --check-certificate and
--private-key option.
* src/OptionHandlerFactory.cc
* src/help_tags.h
* src/option_processing.cc
2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed the package name from `aria2c' to `aria2' in order to fix

View File

@ -434,6 +434,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
(PREF_CA_CERTIFICATE,
TEXT_CA_CERTIFICATE));
op->addTag(TAG_HTTP);
op->addTag(TAG_HTTPS);
handlers.push_back(op);
}
{
@ -441,6 +442,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
(PREF_CERTIFICATE,
TEXT_CERTIFICATE));
op->addTag(TAG_HTTP);
op->addTag(TAG_HTTPS);
handlers.push_back(op);
}
{
@ -449,6 +451,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
TEXT_CHECK_CERTIFICATE,
V_FALSE));
op->addTag(TAG_HTTP);
op->addTag(TAG_HTTPS);
handlers.push_back(op);
}
{
@ -525,6 +528,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
(PREF_PRIVATE_KEY,
TEXT_PRIVATE_KEY));
op->addTag(TAG_HTTP);
op->addTag(TAG_HTTPS);
handlers.push_back(op);
}
{
@ -952,10 +956,11 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
("help",
TEXT_HELP,
TAG_BASIC,
StringFormat("%s,%s,%s,%s,%s,%s,%s,all",
StringFormat("%s,%s,%s,%s,%s,%s,%s,%s,all",
TAG_BASIC,
TAG_ADVANCED,
TAG_HTTP,
TAG_HTTPS,
TAG_FTP,
TAG_METALINK,
TAG_BITTORRENT,

View File

@ -38,6 +38,7 @@
#define TAG_BASIC "basic"
#define TAG_ADVANCED "advanced"
#define TAG_HTTP "http"
#define TAG_HTTPS "https"
#define TAG_FTP "ftp"
#define TAG_METALINK "metalink"
#define TAG_BITTORRENT "bittorrent"

View File

@ -33,6 +33,13 @@
*/
/* copyright --> */
#include "common.h"
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <sstream>
#include <iostream>
#include "Option.h"
#include "prefs.h"
#include "OptionParser.h"
@ -46,11 +53,6 @@
#include "File.h"
#include "StringFormat.h"
#include "OptionHandlerException.h"
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <sstream>
#include <iostream>
extern char* optarg;
extern int optind, opterr, optopt;