aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/bpkg.cxx10
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.
}