summaryrefslogtreecommitdiff
path: root/src/buildtool/common/cli.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-12-12 12:38:42 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-12-14 12:41:11 +0100
commita08dbdcf39cd2824527d153f490514087b70d1c8 (patch)
treef3ea003b42a056823b0a402c42c0590910756082 /src/buildtool/common/cli.hpp
parent5e99a8eca8ef8955dac0d2c76fb0e96b9802b4e8 (diff)
downloadjustbuild-a08dbdcf39cd2824527d153f490514087b70d1c8.tar.gz
just analyse: support dumping the provides map of a target
Diffstat (limited to 'src/buildtool/common/cli.hpp')
-rw-r--r--src/buildtool/common/cli.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp
index 3409eae8..b1633716 100644
--- a/src/buildtool/common/cli.hpp
+++ b/src/buildtool/common/cli.hpp
@@ -78,6 +78,7 @@ struct DiagnosticArguments {
std::optional<std::string> dump_actions{std::nullopt};
std::optional<std::string> dump_blobs{std::nullopt};
std::optional<std::string> dump_trees{std::nullopt};
+ std::optional<std::string> dump_provides{std::nullopt};
std::optional<std::string> dump_vars{std::nullopt};
std::optional<std::string> dump_targets{std::nullopt};
std::optional<std::string> dump_export_targets{std::nullopt};
@@ -344,6 +345,10 @@ static inline auto SetupDiagnosticArguments(
clargs->dump_blobs,
"Dump blobs to file (use - for stdout).")
->type_name("PATH");
+ app->add_option("--dump-provides",
+ clargs->dump_provides,
+ "Dump provides map to file (use - for stdout).")
+ ->type_name("PATH");
app->add_option("--dump-vars",
clargs->dump_vars,
"Dump domain of the effective configuration to file (use - "