aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-24 13:37:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-24 13:37:32 +0200
commit9c3d872426871024d9b601f65698bf5d30466d20 (patch)
tree9845a7ed78b4eeef10bc408e76f6978b16cdbd2a /build2/b.cxx
parent903eeb2c681f2008602bf48265ec628e4fdc9225 (diff)
Fix bug in '--' handling
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index ad54922..e78eebd 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -218,10 +218,8 @@ main (int argc, char* argv[])
// Parse the next chunk of options until we reach an argument (or
// eos).
//
- ops.parse (scan);
-
- if (!scan.more ())
- break;
+ if (ops.parse (scan))
+ continue;
// Fall through.
}