summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-05-14 21:21:33 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-05-14 21:21:33 +0900
commita89c52734a280061e034453379b06543bb4eac5d (patch)
tree576dadda0c9bb3392a37882659efe5565f3d9566 /src
parent2a9012ab60ba43126d78e559740e28562bade900 (diff)
parentceee04cfe8b870021a7964acb68bce00d74490db (diff)
Merge branch 'zi0r-master'
Diffstat (limited to 'src')
-rw-r--r--src/OptionHandlerFactory.cc3
-rw-r--r--src/usage_text.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc
index b3ab8cc0..1e368100 100644
--- a/src/OptionHandlerFactory.cc
+++ b/src/OptionHandlerFactory.cc
@@ -1509,10 +1509,9 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
{
OptionHandler* op(new DefaultOptionHandler
(PREF_NETRC_PATH,
- NO_DESCRIPTION,
+ TEXT_NETRC_PATH,
util::getHomeDir()+"/.netrc",
PATH_TO_FILE));
- op->hide();
handlers.push_back(op);
}
// Proxy options
diff --git a/src/usage_text.h b/src/usage_text.h
index 17bf420d..64f64a43 100644
--- a/src/usage_text.h
+++ b/src/usage_text.h
@@ -225,6 +225,8 @@
_(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.")
#define TEXT_NO_NETRC \
_(" -n, --no-netrc[=true|false] Disables netrc support.")
+#define TEXT_NETRC_PATH \
+ _(" --netrc-path=FILE Specify the path to the netrc file.")
#define TEXT_INPUT_FILE \
_(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n" \
" multiple URIs for a single entity: separate\n" \