From a23aa232645364b2403f380c9e2bb50edf617cb0 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 18 Jul 2022 09:53:46 +0200 Subject: CLI: Add flag for dumping raw tree objects --- src/buildtool/common/cli.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/buildtool/common/cli.hpp') 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 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( -- cgit v1.2.3