浏览代码

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 月之前
父节点
当前提交
55fcffc08c
共有 1 个文件被更改,包括 2 次插入0 次删除
  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):
     """