Browse Source

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>
Antonin Godard 1 month ago
parent
commit
55fcffc08c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scripts/cve-json-to-text.py

+ 2 - 0
scripts/cve-json-to-text.py

@@ -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):
     """