aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-09-16 00:51:40 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-09-16 01:28:55 +0530
commit0001fcb586c3ab297cd48c77ddd6f5d40546dac4 (patch)
treecddeb81eba7987e3cc22e8b631a47f8fb1145941 /yt_dlp/options.py
parentc589c1d3956cb9a8655e8555f2e02f14fbca8a2e (diff)
Add option `--netrc-location`
Closes #792, #963
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 2ff0fbfc1..099b151c6 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -479,6 +479,10 @@ def parseOpts(overrideArguments=None):
action='store_true', dest='usenetrc', default=False,
help='Use .netrc authentication data')
authentication.add_option(
+ '--netrc-location',
+ dest='netrc_location', metavar='PATH',
+ help='Location of .netrc authentication data; either the path or its containing directory. Defaults to ~/.netrc')
+ authentication.add_option(
'--video-password',
dest='videopassword', metavar='PASSWORD',
help='Video password (vimeo, youku)')