From 76d321f68f412a5d07a7dfb9ad0c1c9f5513b13a Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 13 Dec 2020 19:59:09 +0530 Subject: Option to present -F output to a more tabular form --- youtube_dlc/options.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'youtube_dlc/options.py') diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py index e85006a87..f2878e468 100644 --- a/youtube_dlc/options.py +++ b/youtube_dlc/options.py @@ -443,6 +443,14 @@ def parseOpts(overrideArguments=None): '-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, -- cgit v1.2.3