diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-27 15:30:37 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-28 14:53:42 +0100 |
commit | 9ee2086f9f910ac7cd930dffc4888c7c515962fc (patch) | |
tree | d7223cfeda4b9ad75b1d08007c9e33c6b40459e0 /src/buildtool/common/cli.hpp | |
parent | 68f18337afc2cd7a7a8aba123537020f29e51644 (diff) | |
download | justbuild-9ee2086f9f910ac7cd930dffc4888c7c515962fc.tar.gz |
just install-cas: add option --archive
Trees are first-class objects for justbuild. To allow interoperation
with other tools, it is necessary to provide those objects in a
standard format; for directories, those are archives. Hence procive
a corresponding option.
Diffstat (limited to 'src/buildtool/common/cli.hpp')
-rw-r--r-- | src/buildtool/common/cli.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index e7f78201..7ede3217 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -138,6 +138,7 @@ struct FetchArguments { std::optional<std::filesystem::path> sub_path{}; bool remember{false}; bool raw_tree{}; + bool archive{}; }; /// \brief Arguments required for running from graph file. @@ -600,9 +601,11 @@ static inline auto SetupFetchArguments( "tree).") ->type_name("PATH"); + app->add_flag( + "--archive", clargs->archive, "Dump the tree as a single archive."); app->add_flag("--raw-tree", clargs->raw_tree, - "Dump raw tree object (omit pretty printing)"); + "Dump raw tree object (omit pretty printing)."); app->add_flag( "--remember", clargs->remember, "Copy object to local CAS first"); |