From 5ad86a9dbae101cc31792c1ca970316f6e41c4b9 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 1 Jul 2022 16:30:54 +0200 Subject: Implement staging of action inputs Add an option to change the requested result to be (as artifacts) the input stage of a specified action. In this way, the inputs to individual actions can conveniently be inspected, e.g., for local debugging of why an action failed. --- src/buildtool/common/cli.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/buildtool/common/cli.hpp') diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index b2bd4576..4d5df1bf 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -35,6 +35,7 @@ struct AnalysisArguments { std::string defines{}; std::filesystem::path config_file{}; std::optional target{}; + std::optional request_action_input{}; std::optional target_file_name{}; std::optional rule_file_name{}; std::optional expression_file_name{}; @@ -154,6 +155,11 @@ static inline auto SetupAnalysisArguments( app->add_option( "-c,--config", clargs->config_file, "Path to configuration file.") ->type_name("PATH"); + app->add_option( + "--request-action-input", + clargs->request_action_input, + "Instead of the target result, request input for this action.") + ->type_name("ACTION"); app->add_option_function>( "target", [clargs](auto const& target_raw) { -- cgit v1.2.3