]> jfr.im git - yt-dlp.git/commitdiff
[options] Rename `--clean-infojson` to `--clean-info-json`
authorpukkandan <redacted>
Thu, 10 Feb 2022 15:43:28 +0000 (21:13 +0530)
committerpukkandan <redacted>
Fri, 11 Feb 2022 06:37:10 +0000 (12:07 +0530)
README.md
yt_dlp/options.py

index e593d6b40cc82338e8301171b7c48cade5c67c83..b00cdfdcb2bfbcf816ef589d3570309eb3bfe045 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1895,11 +1895,13 @@ #### Old aliases
 These are aliases that are no longer documented for various reasons
 
     --avconv-location                --ffmpeg-location
+    --clean-infojson                 --clean-info-json
     --cn-verification-proxy URL      --geo-verification-proxy URL
     --dump-headers                   --print-traffic
     --dump-intermediate-pages        --dump-pages
     --force-write-download-archive   --force-write-archive
     --load-info                      --load-info-json
+    --no-clean-infojson              --no-clean-info-json
     --no-split-tracks                --no-split-chapters
     --no-write-srt                   --no-write-subs
     --prefer-unsecure                --prefer-insecure
index d89f74ac5c3f287570c4d3074c451e8ee85be4a7..2ba7d2601bb311cf9e73403a6f079c69ca365122 100644 (file)
@@ -1208,13 +1208,13 @@ def _dict_from_options_callback(
         action='store_false', dest='allow_playlist_files',
         help='Do not write playlist metadata when using --write-info-json, --write-description etc.')
     filesystem.add_option(
-        '--clean-infojson',
+        '--clean-info-json', '--clean-infojson',
         action='store_true', dest='clean_infojson', default=None,
         help=(
             'Remove some private fields such as filenames from the infojson. '
             'Note that it could still contain some personal information (default)'))
     filesystem.add_option(
-        '--no-clean-infojson',
+        '--no-clean-info-json', '--no-clean-infojson',
         action='store_false', dest='clean_infojson',
         help='Write all fields to the infojson')
     filesystem.add_option(