aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-08 18:01:41 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-08 18:03:29 +0100
commitc0bdf32a3cb0f6a08ba92cb5261d020ef2f61892 (patch)
tree8b7800a24c9410f323192c98d3dd4a566b2e48e6 /youtube_dl/options.py
parent92b065dc539649d29804ebe329c89de9503b7098 (diff)
downloadyoutube-dl-c0bdf32a3cb0f6a08ba92cb5261d020ef2f61892.tar.xz
Add --print-json (Closes #2845)
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 058342dec..feaca03a3 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -446,6 +446,11 @@ def parseOpts(overrideArguments=None):
action='store_true', dest='dump_single_json', default=False,
help='simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line.')
verbosity.add_option(
+ '--print-json',
+ action='store_true', dest='print_json', default=False,
+ help='Be quiet and print the video information as JSON (video is still being downloaded).',
+ )
+ verbosity.add_option(
'--newline',
action='store_true', dest='progress_with_newline', default=False,
help='output progress bar as new lines')