diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-20 21:43:35 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-20 21:43:35 +0300 |
commit | 2dfbf7564fc94841537ba8fb3d46063ab438dda6 (patch) | |
tree | eff281f4eebd93267f8700f7beff982efcbe0219 | |
parent | e9bfd5e4377efd112f99edf2d33debd8b9bf4fae (diff) |
Fix options/arguments parsing in bpkg.cxx
-rw-r--r-- | bpkg/bpkg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index 567feff..1abe037 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -210,6 +210,11 @@ init (const common_options& co, { if (opt) { + // Parse the next chunk of options until we reach an argument (or eos). + // + if (o.parse (scan) && !scan.more ()) + break; + // If we see first "--", then we are done parsing options. // if (strcmp (scan.peek (), "--") == 0) @@ -221,11 +226,6 @@ init (const common_options& co, continue; } - // Parse the next chunk of options until we reach an argument (or eos). - // - if (o.parse (scan) && !scan.more ()) - break; - // Fall through. } |