From 582222d9481b4d61d5f30b1a6b9ee74c3d672159 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Sun, 1 Feb 2026 16:43:44 -0500 Subject: [PATCH] Allow completion even when legacy prefixes lead to ambiguity --- src/cmdliner_cline.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmdliner_cline.ml b/src/cmdliner_cline.ml index b800878..0fd0667 100644 --- a/src/cmdliner_cline.ml +++ b/src/cmdliner_cline.ml @@ -202,7 +202,7 @@ let parse_opt_args in let cline = Cmdliner_def.Cline.add arg_info arg cline in loop errs (k + 1) comp cline pargs args - | Error `Not_found when for_completion -> + | Error (`Not_found | `Ambiguous) when for_completion -> if not is_completion then (* Drop the data, if the user thought this was an opt with an argument this may confuse positional args but there's