aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md11
-rw-r--r--yt_dlp/options.py10
2 files changed, 14 insertions, 7 deletions
diff --git a/README.md b/README.md
index d3856dc9f..c87f2e776 100644
--- a/README.md
+++ b/README.md
@@ -483,10 +483,13 @@ Then simply run `make`. You can also run `make yt-dlp` instead to compile only t
could still contain some personal
information (default)
--no-clean-infojson Write all fields to the infojson
- --get-comments Retrieve video comments to be placed in the
- .info.json file. The comments are fetched
- even without this option if the extraction
- is known to be quick
+ --write-comments Retrieve video comments to be placed in the
+ infojson. The comments are fetched even
+ without this option if the extraction is
+ known to be quick (Alias: --get-comments)
+ --no-write-comments Do not retrieve video comments unless the
+ extraction is known to be quick
+ (Alias: --no-get-comments)
--load-info-json FILE JSON file containing the video information
(created with the "--write-info-json"
option)
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index b99d5d202..695e08594 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1048,11 +1048,15 @@ def parseOpts(overrideArguments=None):
action='store_false', dest='clean_infojson',
help='Write all fields to the infojson')
filesystem.add_option(
- '--get-comments',
+ '--write-comments', '--get-comments',
action='store_true', dest='getcomments', default=False,
help=(
- 'Retrieve video comments to be placed in the .info.json file. '
- 'The comments are fetched even without this option if the extraction is known to be quick'))
+ 'Retrieve video comments to be placed in the infojson. '
+ 'The comments are fetched even without this option if the extraction is known to be quick (Alias: --get-comments)'))
+ filesystem.add_option(
+ '--no-write-comments', '--no-get-comments',
+ action='store_true', dest='getcomments', default=False,
+ help='Do not retrieve video comments unless the extraction is known to be quick (Alias: --no-get-comments)')
filesystem.add_option(
'--load-info-json', '--load-info',
dest='load_info_filename', metavar='FILE',