From c492671a82491df34fd125e7c87817d816b17a78 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 9 Jun 2022 12:17:08 +0200 Subject: Change wording of -D to emphasize that it is an overlay While there, also document the option (in more detail) in the man page. --- share/man/just.1.org | 7 +++++++ src/buildtool/common/cli.hpp | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/share/man/just.1.org b/share/man/just.1.org index 44f4e604..da7c0f29 100644 --- a/share/man/just.1.org +++ b/share/man/just.1.org @@ -235,6 +235,13 @@ well-defined graph file. See *just-graph-file(5)* for more details. Path to configuration file for multi-repository builds.\\ Supported by: analyse|build|describe|install|rebuild|traverse. + *-D*, *--defines* JSON\\ + Defines, via an in-line JSON object a configuratio to overlay + (in the sense of ~map_union~) to the configuration + obtained by the *--config* option. If *-D* is given several times, + only the latest *-D* option is taken.\\ + Supported by: analyse|build|describe|install|rebuild. + *--expression-file-name* TEXT\\ Name of the expressions file.\\ Supported by: analyse|build|describe|install|rebuild. diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index fdfb08b9..ab4a7ff1 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -140,8 +140,8 @@ static inline auto SetupAnalysisArguments( app->add_option( "-D,--defines", clargs->defines, - "Define configuration variables via an in-line JSON object.\n" - "Latest wins. Supersedes values provided via --config") + "Define an overlay configuration via an in-line JSON object." + "Latest wins.") ->type_name("JSON"); app->add_option( "-c,--config", clargs->config_file, "Path to configuration file.") -- cgit v1.2.3