diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2024-04-09 10:41:04 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-10 16:07:46 +0200 |
commit | 10d12b68c685f453c8f1da8ff90d4af811fcfe5b (patch) | |
tree | 973175c4fc8141cbefdce831b3f91540f694e0e7 /src | |
parent | 32fe9f005ce270a9f5a47b0fab1f8a718edbd1be (diff) | |
download | justbuild-10d12b68c685f453c8f1da8ff90d4af811fcfe5b.tar.gz |
bugfix: cli: remote-execution-property: allow for accumulating multiple pairs.
Before this patch, if the option `--remote-execution-property KEY:VAL`
is repeated multiple times (also with different `KEY`s), only the last
one is taken into account.
This patch fixes the intended behavior.
(cherry picked from commit 2e953b04bbd8e619172c9d0eeafd0342700d6ee9)
Diffstat (limited to 'src')
-rw-r--r-- | src/buildtool/common/cli.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index a49b2f6b..fcb7a1ff 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -394,7 +394,8 @@ static inline auto SetupEndpointArguments( "option multiple times will accumulate pairs (latest wins).") ->type_name("KEY:VAL") ->allow_extra_args(false) - ->expected(1, 1); + ->expected(1) + ->take_all(); } static inline auto SetupCommonBuildArguments( |