diff options
author | dirkf <fieldhouse@gmx.net> | 2025-09-28 07:34:15 +0100 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2025-09-29 02:15:05 +0100 |
commit | 617d4e646634f035727cae917455ad3cb898dabf (patch) | |
tree | 564b64f5cd151e7e0ea69feb9f213df54fd38c7c | |
parent | 9223fcc48a498835a0c1f82a65d1d70fb17e303e (diff) |
[core] Support explicit `--no-list-formats` option
-rw-r--r-- | youtube_dl/options.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py index e3360da89..ce3633c41 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -405,6 +405,10 @@ def parseOpts(overrideArguments=None): action='store_true', dest='listformats', help='List all available formats of requested videos') video_format.add_option( + '--no-list-formats', + action='store_false', dest='listformats', + help='Do not list available formats of requested videos (default)') + video_format.add_option( '--youtube-include-dash-manifest', action='store_true', dest='youtube_include_dash_manifest', default=True, help=optparse.SUPPRESS_HELP) |