瀏覽代碼

[options] Add --no-mark-watched (#5054)

Sergey M․ 9 年之前
父節點
當前提交
90f794c6c3
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      youtube_dl/options.py

+ 4 - 0
youtube_dl/options.py

@@ -174,6 +174,10 @@ def parseOpts(overrideArguments=None):
         '--mark-watched',
         action='store_true', dest='mark_watched', default=False,
         help='Mark videos watched (YouTube only)')
+    general.add_option(
+        '--no-mark-watched',
+        action='store_false', dest='mark_watched', default=False,
+        help='Do not mark videos watched (YouTube only)')
     general.add_option(
         '--no-color', '--no-colors',
         action='store_true', dest='no_color',