From cec96e9c34e608c5f88b73adce5a32fce76d09e6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 10 Sep 2021 17:05:31 +0300 Subject: Allow options and vars in any order inside argument groups in pkg-build --- bpkg/bpkg.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/bpkg.cxx') diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index 953a5ad..567feff 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -223,8 +223,8 @@ init (const common_options& co, // Parse the next chunk of options until we reach an argument (or eos). // - if (o.parse (scan)) - continue; + if (o.parse (scan) && !scan.more ()) + break; // Fall through. } -- cgit v1.1