From: Bin Cao <bin.cao.cn@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Cc: <bin.cao.cn@windriver.com>
Subject: [PATCH] scripts/cve-json-to-text.py: simplify getopt argument parsing
Date: Mon, 20 Apr 2026 10:42:37 +0800 [thread overview]
Message-ID: <20260420024237.2218341-1-bin.cao.cn@windriver.com> (raw)
Remove unused long options from getopt.getopt() call. The long options
"help", "input", and "output" were never handled in the option parsing
logic, so they are dead code.
Signed-off-by: Bin Cao <bin.cao.cn@windriver.com>
---
scripts/cve-json-to-text.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/scripts/cve-json-to-text.py b/scripts/cve-json-to-text.py
index 8d309b37e5..f338672269 100755
--- a/scripts/cve-json-to-text.py
+++ b/scripts/cve-json-to-text.py
@@ -42,9 +42,7 @@ def parse_args(argv):
"""
global infile, outfile
try:
- opts, args = getopt.getopt(
- argv, "hi:o:", ["help", "input", "output"]
- )
+ opts, args = getopt.getopt(argv, "hi:o:")
except getopt.GetoptError:
show_syntax_and_exit(1)
for opt, arg in opts:
--
2.43.0
reply other threads:[~2026-04-20 2:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260420024237.2218341-1-bin.cao.cn@windriver.com \
--to=bin.cao.cn@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox