From 2e953b04bbd8e619172c9d0eeafd0342700d6ee9 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Tue, 9 Apr 2024 10:41:04 +0200 Subject: 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. --- src/buildtool/common/cli.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/common/cli.hpp') 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( -- cgit v1.2.3