summaryrefslogtreecommitdiff
path: root/src/OptionHandlerFactory.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-09-14 12:43:32 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-09-14 12:43:32 +0000
commitaefb035bb1922f1f057faf9a99dcdb36117bd4dc (patch)
treeb22f78c91e95ddc065ee2f765e886289b4c10286 /src/OptionHandlerFactory.cc
parentaa4bac65d9165b5612b0e722fbb40c3029f65214 (diff)
2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Help category now starts with "#" to distinguish a category from keyword search. For example, "http" categroy is now "#http". You can type "--help=#http" to get explanation of options related to http. If '#' is omitted, then the argument is treated as a keyword and aria2 searches options whose name includes the keyword and print matched ones. For example, "--help=http" will show options whose name includes "http". * src/OptionHandlerFactory.cc * src/help_tags.h * src/usage_text.h * src/version_usage.cc
Diffstat (limited to 'src/OptionHandlerFactory.cc')
-rw-r--r--src/OptionHandlerFactory.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc
index f763657f..a46d88cb 100644
--- a/src/OptionHandlerFactory.cc
+++ b/src/OptionHandlerFactory.cc
@@ -1266,7 +1266,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
TAG_BASIC,
StringFormat
("%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, "
- "all",
+ "%s",
TAG_BASIC,
TAG_ADVANCED,
TAG_HTTP,
@@ -1276,7 +1276,8 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
TAG_BITTORRENT,
TAG_XML_RPC,
TAG_EXPERIMENTAL,
- TAG_HELP).str(),
+ TAG_HELP,
+ TAG_ALL).str(),
OptionHandler::OPT_ARG,
'h'));
op->addTag(TAG_BASIC);