summaryrefslogtreecommitdiff
path: root/src/buildtool/common/cli.hpp
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2024-04-09 10:41:04 +0200
committerAlberto Sartori <alberto.sartori@huawei.com>2024-04-10 10:36:20 +0200
commit2e953b04bbd8e619172c9d0eeafd0342700d6ee9 (patch)
tree2c89632906d8b46867b5a5f57129269e2cd82306 /src/buildtool/common/cli.hpp
parent277be6dd08633dbebfda93afdfc6b5cb57e053e0 (diff)
downloadjustbuild-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.hpp3
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(