From: Antonin Godard Date: Fri, 25 Apr 2025 13:40:41 +0000 (+0200) Subject: scripts/cve-json-to-text.py: remove unused options X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2be1a9197b5e261051fe075edca000dc70ee2fe;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Antonin Godard Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/scripts/cve-json-to-text.py b/scripts/cve-json-to-text.py index 87a5669987c..a2eb592f5fd 100755 --- a/scripts/cve-json-to-text.py +++ b/scripts/cve-json-to-text.py @@ -48,12 +48,9 @@ def parse_args(argv): except getopt.GetoptError: show_syntax_and_exit(1) for opt, arg in opts: - if opt in ("-h", "--help"): + if opt in ("-h"): show_syntax_and_exit(0) - elif opt in ("-a", "--all"): - show_all = True - show_unknown = True - elif opt in ("-i", "--input"): + elif opt in ("-i"): infile = arg def load_json(filename):