diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-03-06 16:45:26 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-03-07 15:10:00 +0100 |
commit | 4181505a187a158d36a1845a4a796af5671cc7ab (patch) | |
tree | 432d00be027d66118067ee9e577e89076714fa0f /src | |
parent | fb8fe5821664778a0beffa8161f8dc68d74dd748 (diff) | |
download | justbuild-4181505a187a158d36a1845a4a796af5671cc7ab.tar.gz |
just-mr utils: Be more verbose in just subcommand flags mapping
Make clear what fields the defined boolean values refer to.
Diffstat (limited to 'src')
-rw-r--r-- | src/other_tools/just_mr/utils.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
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<std::string, JustSubCmdFlags> 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"}}, |