Add --print-json (Closes #2845)

This commit is contained in:
Philipp Hagemeister 2015-01-08 18:01:41 +01:00
parent 92b065dc53
commit c0bdf32a3c
2 changed files with 10 additions and 4 deletions

View file

@ -445,6 +445,11 @@ def parseOpts(overrideArguments=None):
'-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(
'--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,