aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-10-25 00:30:57 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-10-25 00:30:57 +0200
commit63e0be341571450a2016a29f917e521b70d36020 (patch)
tree81ef589fb9535480ee904fc66ef6342454437295 /youtube_dl/options.py
parentc64ed2a310542a46e79e8969df32d14a5403e53d (diff)
downloadyoutube-dl-63e0be341571450a2016a29f917e521b70d36020.tar.xz
New option --dump-single-json (#4003)
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 2b1cd7438..2ccc63fc5 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -418,6 +418,10 @@ def parseOpts(overrideArguments=None):
action='store_true', dest='dumpjson', default=False,
help='simulate, quiet but print JSON information. See --output for a description of available keys.')
verbosity.add_option(
+ '-J', '--dump-single-json',
+ 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(
'--newline',
action='store_true', dest='progress_with_newline', default=False,
help='output progress bar as new lines')