diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2024-04-09 10:41:04 +0200 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2024-04-10 10:36:20 +0200 |
commit | 2e953b04bbd8e619172c9d0eeafd0342700d6ee9 (patch) | |
tree | 2c89632906d8b46867b5a5f57129269e2cd82306 /src/buildtool/common/cli.hpp | |
parent | 277be6dd08633dbebfda93afdfc6b5cb57e053e0 (diff) | |
download | justbuild-2e953b04bbd8e619172c9d0eeafd0342700d6ee9.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.
Diffstat (limited to 'src/buildtool/common/cli.hpp')
-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 7ede3217..cfe2263a 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -438,7 +438,8 @@ static inline auto SetupExecutionPropertiesArguments( "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 SetupServeEndpointArguments( |