summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/cli.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/just_mr/cli.hpp')
-rw-r--r--src/other_tools/just_mr/cli.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/other_tools/just_mr/cli.hpp b/src/other_tools/just_mr/cli.hpp
index 328ab666..4c0c6e34 100644
--- a/src/other_tools/just_mr/cli.hpp
+++ b/src/other_tools/just_mr/cli.hpp
@@ -33,6 +33,7 @@
/// \brief Arguments common to all just-mr subcommands
struct MultiRepoCommonArguments {
std::optional<std::filesystem::path> repository_config{std::nullopt};
+ std::optional<std::filesystem::path> absent_repository_file{std::nullopt};
std::optional<std::filesystem::path> checkout_locations_file{std::nullopt};
std::vector<std::string> explicit_distdirs{};
JustMR::PathsPtr just_mr_paths = std::make_shared<JustMR::Paths>();
@@ -98,6 +99,16 @@ static inline void SetupMultiRepoCommonArguments(
"Repository-description file to use.")
->type_name("FILE");
app->add_option_function<std::string>(
+ "--absent",
+ [clargs](auto const& file_raw) {
+ clargs->absent_repository_file =
+ std::filesystem::weakly_canonical(
+ std::filesystem::absolute(file_raw));
+ },
+ "File specifying the repositories to consider absent (overrides the "
+ "pragma in the config file).")
+ ->type_name("FILE");
+ app->add_option_function<std::string>(
"--local-build-root",
[clargs](auto const& local_build_root_raw) {
clargs->just_mr_paths->root = std::filesystem::weakly_canonical(