From 73f0685ec75372882a61ca4127e3cef44203a465 Mon Sep 17 00:00:00 2001 From: Gadi Evron Date: Fri, 12 Jun 2026 22:21:36 +0300 Subject: [PATCH] fix(cli): add zig to the --language choices for parse and scan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The zig parser is dispatched by parse_repository (core/parser_adapter.py:126) and has a working test_pipeline, but 'zig' was missing from the parse/scan --language choices, so 'openant parse --language zig' errored with 'invalid choice'. Pre-existing gap (present on master); surfaced while verifying the library-mode work — zig library-mode is unreachable via the CLI without this. Verified: 'openant parse /tmp/zig-kf --language zig --level reachable --library-mode' now runs (9 -> 21 reachable functions under library-mode). --- libs/openant-core/openant/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/openant-core/openant/cli.py b/libs/openant-core/openant/cli.py index c303c647..69a45360 100644 --- a/libs/openant-core/openant/cli.py +++ b/libs/openant-core/openant/cli.py @@ -959,7 +959,7 @@ def main(): scan_p.add_argument("--output", "-o", help="Output directory (default: temp dir)") scan_p.add_argument( "--language", "-l", - choices=["auto", "python", "javascript", "go", "c", "ruby", "php"], + choices=["auto", "python", "javascript", "go", "c", "ruby", "php", "zig"], default="auto", help="Language (default: auto-detect)", ) @@ -1025,7 +1025,7 @@ def main(): parse_p.add_argument("--output", "-o", help="Output directory (default: temp dir)") parse_p.add_argument( "--language", "-l", - choices=["auto", "python", "javascript", "go", "c", "ruby", "php"], + choices=["auto", "python", "javascript", "go", "c", "ruby", "php", "zig"], default="auto", help="Language (default: auto-detect)", )