New option --dump-single-json (#4003)

This commit is contained in:
Philipp Hagemeister 2014-10-25 00:30:57 +02:00
parent c64ed2a310
commit 63e0be3415
3 changed files with 14 additions and 2 deletions

View file

@ -417,6 +417,10 @@ def parseOpts(overrideArguments=None):
'-j', '--dump-json',
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,