summaryrefslogtreecommitdiff
path: root/src/buildtool/common/cli.hpp
diff options
context:
space:
mode:
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(