mirror of https://github.com/aria2/aria2
Allow netrc-path to be specified in the config file
parent
2a9012ab60
commit
ceee04cfe8
|
@ -1509,10 +1509,9 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
|
||||||
{
|
{
|
||||||
OptionHandler* op(new DefaultOptionHandler
|
OptionHandler* op(new DefaultOptionHandler
|
||||||
(PREF_NETRC_PATH,
|
(PREF_NETRC_PATH,
|
||||||
NO_DESCRIPTION,
|
TEXT_NETRC_PATH,
|
||||||
util::getHomeDir()+"/.netrc",
|
util::getHomeDir()+"/.netrc",
|
||||||
PATH_TO_FILE));
|
PATH_TO_FILE));
|
||||||
op->hide();
|
|
||||||
handlers.push_back(op);
|
handlers.push_back(op);
|
||||||
}
|
}
|
||||||
// Proxy options
|
// Proxy options
|
||||||
|
|
|
@ -225,6 +225,8 @@
|
||||||
_(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.")
|
_(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.")
|
||||||
#define TEXT_NO_NETRC \
|
#define TEXT_NO_NETRC \
|
||||||
_(" -n, --no-netrc[=true|false] Disables netrc support.")
|
_(" -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 \
|
#define TEXT_INPUT_FILE \
|
||||||
_(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n" \
|
_(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n" \
|
||||||
" multiple URIs for a single entity: separate\n" \
|
" multiple URIs for a single entity: separate\n" \
|
||||||
|
|
Loading…
Reference in New Issue