diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-11-10 22:43:09 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-11-13 13:29:05 +0300 |
commit | e59343b3267e82aff33a8f73ab82b51345913c06 (patch) | |
tree | ea4a76855089af619fdeb542d94824537337d7cc /bpkg/pkg-configure.cxx | |
parent | 85eff0e9f81a3eeccc67e534f43be7e9f2e75521 (diff) |
Add support for vars grouping for package commands
Diffstat (limited to 'bpkg/pkg-configure.cxx')
-rw-r--r-- | bpkg/pkg-configure.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bpkg/pkg-configure.cxx b/bpkg/pkg-configure.cxx index 6db60d4..d63b010 100644 --- a/bpkg/pkg-configure.cxx +++ b/bpkg/pkg-configure.cxx @@ -238,12 +238,21 @@ namespace bpkg // string n; strings vars; + bool sep (false); // Seen '--'. while (args.more ()) { string a (args.next ()); - if (a.find ('=') != string::npos) + // If we see the "--" separator, then we are done parsing variables. + // + if (!sep && a == "--") + { + sep = true; + continue; + } + + if (!sep && a.find ('=') != string::npos) vars.push_back (move (a)); else if (n.empty ()) n = move (a); |