mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
1ebcf9f258
commit
62e934f038
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user