aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorZirro <code@zirro.se>2021-10-18 21:11:07 +0200
committerGitHub <noreply@github.com>2021-10-19 00:41:07 +0530
commit1e520b5535fbd870f46981fc0de228dc781bc361 (patch)
tree8ddd289f8e4f5c9d8ca09900d8a9dc1932db9604 /yt_dlp/options.py
parent176f1866cb437dd59cf8f600638cfd7ba2a8525e (diff)
downloadhypervideo-pre-1e520b5535fbd870f46981fc0de228dc781bc361.tar.lz
hypervideo-pre-1e520b5535fbd870f46981fc0de228dc781bc361.tar.xz
hypervideo-pre-1e520b5535fbd870f46981fc0de228dc781bc361.zip
Add option `--no-batch-file` (#1335)
Authored by: Zirro
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 1c99e7e7c..0638e8642 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -972,6 +972,10 @@ def parseOpts(overrideArguments=None):
help="File containing URLs to download ('-' for stdin), one URL per line. "
"Lines starting with '#', ';' or ']' are considered as comments and ignored")
filesystem.add_option(
+ '--no-batch-file',
+ dest='batchfile', action='store_const', const=None,
+ help='Do not read URLs from batch file (default)')
+ filesystem.add_option(
'-P', '--paths',
metavar='[TYPES:]PATH', dest='paths', default={}, type='str',
action='callback', callback=_dict_from_options_callback,