public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] scripts/cve-json-to-text.py: simplify getopt argument parsing
@ 2026-04-20  2:42 Bin Cao
  0 siblings, 0 replies; only message in thread
From: Bin Cao @ 2026-04-20  2:42 UTC (permalink / raw)
  To: openembedded-core; +Cc: bin.cao.cn

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-20  2:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20  2:42 [PATCH] scripts/cve-json-to-text.py: simplify getopt argument parsing Bin Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox