summaryrefslogtreecommitdiff
path: root/src/buildtool/common/cli.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-07-18 09:53:46 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2022-08-05 14:41:31 +0200
commita23aa232645364b2403f380c9e2bb50edf617cb0 (patch)
tree7b917f4fc085236b3f6fdc90a7737fd02b6bfca6 /src/buildtool/common/cli.hpp
parentc0422f390f9f30b7cc470a814e209bedc7e87f1a (diff)
downloadjustbuild-a23aa232645364b2403f380c9e2bb50edf617cb0.tar.gz
CLI: Add flag for dumping raw tree objects
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 3966f888..46af6598 100644
--- a/src/buildtool/common/cli.hpp
+++ b/src/buildtool/common/cli.hpp
@@ -97,6 +97,7 @@ struct RebuildArguments {
struct FetchArguments {
std::string object_id{};
std::optional<std::filesystem::path> output_path{};
+ bool raw_tree{};
};
/// \brief Arguments required for running from graph file.
@@ -377,6 +378,10 @@ static inline auto SetupFetchArguments(
},
"Install path for the artifact. (omit to dump to stdout)")
->type_name("PATH");
+
+ app->add_flag("--raw-tree",
+ clargs->raw_tree,
+ "Dump raw tree object (omit pretty printting)");
}
static inline auto SetupGraphArguments(