add '-J/--resolve-json' command-line option (#5864)

This commit is contained in:
Mike Fährmann
2024-07-26 20:36:04 +02:00
parent 70f18b7a78
commit 8ecd408f53
4 changed files with 15 additions and 3 deletions

View File

@@ -249,6 +249,9 @@ def main():
if config.get(("output",), "fallback", True):
jobtype.handle_url = \
staticmethod(jobtype.handle_url_fallback)
elif args.dump_json:
jobtype = job.DataJob
jobtype.resolve = args.dump_json - 1
else:
jobtype = args.jobtype or job.DownloadJob