diff mbox series

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

Message ID 20250425134137.4148001-2-antonin.godard@bootlin.com
State New
Headers show
Series [1/2] scripts/cve-json-to-text.py: remove unused options | expand

Commit Message

Antonin Godard April 25, 2025, 1:40 p.m. UTC
Add the missing condition on '-o', which allows changing the output
path.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 scripts/cve-json-to-text.py | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/scripts/cve-json-to-text.py b/scripts/cve-json-to-text.py
index a2eb592f5f..8d309b37e5 100755
--- a/scripts/cve-json-to-text.py
+++ b/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):
     """