From 4181505a187a158d36a1845a4a796af5671cc7ab Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 6 Mar 2023 16:45:26 +0100 Subject: just-mr utils: Be more verbose in just subcommand flags mapping Make clear what fields the defined boolean values refer to. --- src/other_tools/just_mr/utils.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/other_tools/just_mr/utils.hpp b/src/other_tools/just_mr/utils.hpp index 841f4158..f5cc7de9 100644 --- a/src/other_tools/just_mr/utils.hpp +++ b/src/other_tools/just_mr/utils.hpp @@ -52,14 +52,14 @@ struct JustSubCmdFlags { // ordered, so that we have replicability std::map const kKnownJustSubcommands{ - {"version", {false, false}}, - {"describe", {true, false}}, - {"analyse", {true, true}}, - {"build", {true, true}}, - {"install", {true, true}}, - {"rebuild", {true, true}}, - {"install-cas", {false, true}}, - {"gc", {false, true}}}; + {"version", {false /*config*/, false /*build_root*/}}, + {"describe", {true /*config*/, false /*build_root*/}}, + {"analyse", {true /*config*/, true /*build_root*/}}, + {"build", {true /*config*/, true /*build_root*/}}, + {"install", {true /*config*/, true /*build_root*/}}, + {"rebuild", {true /*config*/, true /*build_root*/}}, + {"install-cas", {false /*config*/, true /*build_root*/}}, + {"gc", {false /*config*/, true /*build_root*/}}}; nlohmann::json const kDefaultConfigLocations = nlohmann::json::array( {{{"root", "workspace"}, {"path", "repos.json"}}, -- cgit v1.2.3