From 91220f20ca72c65851b31bfb42678678e8858b3b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 23 Aug 2011 17:59:38 +0900 Subject: [PATCH] Added #checksum help tag. --- doc/aria2c.1.asciidoc | 8 ++++---- src/OptionHandlerFactory.cc | 6 ++++++ src/help_tags.h | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/aria2c.1.asciidoc b/doc/aria2c.1.asciidoc index 02102446..3c7f4cad 100644 --- a/doc/aria2c.1.asciidoc +++ b/doc/aria2c.1.asciidoc @@ -77,10 +77,10 @@ Basic Options The help messages are classified with tags. A tag starts with "#". For example, type "--help=#http" to get the usage for the options tagged with "#http". If non-tag word is given, print the - usage for the options whose name includes that word. - Available Values: '#basic', '#advanced', '#http', '#https', '#ftp', - '#metalink', '#bittorrent', '#cookie', '#hook', '#file', - '#rpc', '#experimental', '#deprecated', '#help', '#all' + usage for the options whose name includes that word. Available + Values: '#basic', '#advanced', '#http', '#https', '#ftp', + '#metalink', '#bittorrent', '#cookie', '#hook', '#file', '#rpc', + '#checksum', '#experimental', '#deprecated', '#help', '#all' Default: '#basic' HTTP/FTP Options diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index e42437a7..9f8f3891 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -131,6 +131,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() op->addTag(TAG_BITTORRENT); op->addTag(TAG_METALINK); op->addTag(TAG_FILE); + op->addTag(TAG_CHECKSUM); handlers.push_back(op); } #endif // ENABLE_MESSAGE_DIGEST @@ -317,6 +318,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() op->addTag(TAG_BITTORRENT); op->addTag(TAG_METALINK); op->addTag(TAG_FILE); + op->addTag(TAG_CHECKSUM); handlers.push_back(op); } #endif // ENABLE_MESSAGE_DIGEST @@ -555,6 +557,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() A2_V_TRUE, OptionHandler::OPT_ARG)); op->addTag(TAG_METALINK); + op->addTag(TAG_CHECKSUM); handlers.push_back(op); } #endif // ENABLE_MESSAGE_DIGEST @@ -679,6 +682,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_CHECKSUM)); op->addTag(TAG_FTP); op->addTag(TAG_HTTP); + op->addTag(TAG_CHECKSUM); handlers.push_back(op); } #endif // ENABLE_MESSAGE_DIGEST @@ -1322,6 +1326,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() A2_V_TRUE, OptionHandler::OPT_ARG)); op->addTag(TAG_BITTORRENT); + op->addTag(TAG_CHECKSUM); handlers.push_back(op); } { @@ -1795,6 +1800,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TAG_HOOK, TAG_FILE, TAG_RPC, + TAG_CHECKSUM, TAG_EXPERIMENTAL, TAG_DEPRECATED, TAG_HELP, diff --git a/src/help_tags.h b/src/help_tags.h index 54494ae1..13665dbe 100644 --- a/src/help_tags.h +++ b/src/help_tags.h @@ -46,6 +46,7 @@ #define TAG_HOOK "#hook" #define TAG_FILE "#file" #define TAG_RPC "#rpc" +#define TAG_CHECKSUM "#checksum" #define TAG_EXPERIMENTAL "#experimental" #define TAG_DEPRECATED "#deprecated" #define TAG_HELP "#help"