diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-20 15:40:35 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-20 15:56:57 +0530 |
commit | 2305e2e5c91e46f921cf4221033a0804c78876f8 (patch) | |
tree | c41bc184fa3d9192b8fdaa44161378c56bafb7d7 /yt_dlp/options.py | |
parent | 00ae27690daea37372490f6c0c45d0f14b9feecc (diff) | |
download | hypervideo-pre-2305e2e5c91e46f921cf4221033a0804c78876f8.tar.lz hypervideo-pre-2305e2e5c91e46f921cf4221033a0804c78876f8.tar.xz hypervideo-pre-2305e2e5c91e46f921cf4221033a0804c78876f8.zip |
[options] Alias `--write-comments`, `--no-write-comments`
Closes: #264
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 10 |
1 files changed, 7 insertions, 3 deletions
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', |