A feature-rich command-line audio/video downloader
Add option `--no-batch-file` (#1335)
Zirro1e520b5535fb
diff --git a/README.md b/README.mdindex ce76474a2c..d410d04d18 100644--- a/README.md+++ b/README.md@@ -465,6 +465,7 @@ Then simply run `make`. You can also run `make yt-dlp` instead to compile only tstdin), one URL per line. Lines startingwith '#', ';' or ']' are considered ascomments and ignored+ --no-batch-file Do not read URLs from batch file (default)-P, --paths [TYPES:]PATH The paths where the files should bedownloaded. Specify the type of file andthe path separated by a colon ":". All thediff --git a/yt_dlp/options.py b/yt_dlp/options.pyindex 1c99e7e7c3..0638e86429 100644--- a/yt_dlp/options.py+++ b/yt_dlp/options.py@@ -971,6 +971,10 @@ def parseOpts(overrideArguments=None):dest='batchfile', metavar='FILE',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',