diff options
Diffstat (limited to 'src/buildtool/common/cli.hpp')
-rw-r--r-- | src/buildtool/common/cli.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index eded8112..57567cf7 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -91,6 +91,7 @@ struct DiagnosticArguments { std::optional<std::string> dump_targets_graph{std::nullopt}; std::optional<std::string> dump_anonymous{std::nullopt}; std::optional<std::string> dump_nodes{std::nullopt}; + std::optional<std::string> dump_result{std::nullopt}; }; /// \brief Arguments required for specifying build endpoint. @@ -398,6 +399,10 @@ static inline auto SetupDiagnosticArguments( clargs->dump_nodes, "Dump nodes of target to file (use - for stdout).") ->type_name("PATH"); + app->add_option("--dump-result", + clargs->dump_result, + "Dump the result of analyse to file (use - for stdout).") + ->type_name("PATH"); } static inline auto SetupCacheArguments( |