scripts/cve-json-to-text.py: fix missing -o option

Add the missing condition on '-o', which allows changing the output
path.

(From OE-Core rev: f9a176a8a36524a68a3ff98f157357303093382f)

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Antonin Godard 2025-04-25 15:40:42 +02:00 committed by Richard Purdie
parent 62e934f038
commit 55fcffc08c

View File

@ -52,6 +52,8 @@ def parse_args(argv):
show_syntax_and_exit(0)
elif opt in ("-i"):
infile = arg
elif opt in ("-o"):
outfile = arg
def load_json(filename):
"""