浏览代码

[options] Mention comments support in --batch-file

Arend v. Reinersdorff 7 年之前
父节点
当前提交
5d60b99717
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/options.py

+ 2 - 1
youtube_dl/options.py

@@ -676,7 +676,8 @@ def parseOpts(overrideArguments=None):
     filesystem.add_option(
     filesystem.add_option(
         '-a', '--batch-file',
         '-a', '--batch-file',
         dest='batchfile', metavar='FILE',
         dest='batchfile', metavar='FILE',
-        help='File containing URLs to download (\'-\' for stdin)')
+        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(
     filesystem.add_option(
         '--id', default=False,
         '--id', default=False,
         action='store_true', dest='useid', help='Use only video ID in file name')
         action='store_true', dest='useid', help='Use only video ID in file name')