]> jfr.im git - yt-dlp.git/blobdiff - youtube_dlc/options.py
Option to present -F output to a more tabular form
[yt-dlp.git] / youtube_dlc / options.py
index e85006a87130b86633cdc4b568b3ca858dffa8ca..f2878e4685c6eea515554b765b1da3c1ed347119 100644 (file)
@@ -443,6 +443,14 @@ def _comma_separated_values_options_callback(option, opt_str, value, parser):
         '-F', '--list-formats',
         action='store_true', dest='listformats',
         help='List all available formats of requested videos')
+    video_format.add_option(
+        '--list-formats-as-table',
+        action='store_true', dest='listformats_table', default=False,
+        help='Present the output of -F in a more tabular form')
+    video_format.add_option(
+        '--list-formats-old',
+        action='store_false', dest='listformats_table',
+        help=optparse.SUPPRESS_HELP)
     video_format.add_option(
         '--youtube-include-dash-manifest',
         action='store_true', dest='youtube_include_dash_manifest', default=True,