summaryrefslogtreecommitdiffstats
path: root/scripts/cve-json-to-text.py
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2025-04-25 15:40:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-29 09:59:01 +0100
commit62e934f0380cacf873cae170f61333f5bd4ae4f6 (patch)
tree50b06305399c42f0d112b682b51f4e6a0a3c2599 /scripts/cve-json-to-text.py
parent1ebcf9f258f1a85e108a01123abe24cf2bc50ee8 (diff)
downloadpoky-62e934f0380cacf873cae170f61333f5bd4ae4f6.tar.gz
scripts/cve-json-to-text.py: remove unused options
Remove --all and -a and they are unused in the file. Remove long options as they don't actually exist when using getopt. (From OE-Core rev: c2be1a9197b5e261051fe075edca000dc70ee2fe) 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>
Diffstat (limited to 'scripts/cve-json-to-text.py')
-rwxr-xr-xscripts/cve-json-to-text.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/cve-json-to-text.py b/scripts/cve-json-to-text.py
index 87a5669987..a2eb592f5f 100755
--- a/scripts/cve-json-to-text.py
+++ b/scripts/cve-json-to-text.py
@@ -48,12 +48,9 @@ def parse_args(argv):
48 except getopt.GetoptError: 48 except getopt.GetoptError:
49 show_syntax_and_exit(1) 49 show_syntax_and_exit(1)
50 for opt, arg in opts: 50 for opt, arg in opts:
51 if opt in ("-h", "--help"): 51 if opt in ("-h"):
52 show_syntax_and_exit(0) 52 show_syntax_and_exit(0)
53 elif opt in ("-a", "--all"): 53 elif opt in ("-i"):
54 show_all = True
55 show_unknown = True
56 elif opt in ("-i", "--input"):
57 infile = arg 54 infile = arg
58 55
59def load_json(filename): 56def load_json(filename):