aboutsummaryrefslogtreecommitdiff
path: root/bdep/sync.cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-07-21 21:31:18 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-08-05 12:36:07 +0300
commit9664d2849ee30d63cd10ce5b258f1433a650b488 (patch)
tree89fa1d8de3ee56be6e76f49803ee2888516d902b /bdep/sync.cli
parenteb02d377f4f10e23cc6673e9e8f048b4ecbc8492 (diff)
Add support for automatic creation of configurations for build-time dependencies
Diffstat (limited to 'bdep/sync.cli')
-rw-r--r--bdep/sync.cli18
1 files changed, 18 insertions, 0 deletions
diff --git a/bdep/sync.cli b/bdep/sync.cli
index 07c46a2..86c6095 100644
--- a/bdep/sync.cli
+++ b/bdep/sync.cli
@@ -67,6 +67,13 @@ namespace bdep
Note also that \c{\b{--immediate}|\b{-i}} or \c{\b{--recursive}|\b{-r}}
can only be specified with an explicit \cb{--upgrade} or \cb{--patch}.
+ If during synchronization a build-time dependency is encountered and
+ there is no build configuration of a suitable type associated with the
+ project, then the user is prompted (unless the respective
+ \cb{--create-*-config} option is specified) to automatically create such
+ a configuration and associate it with the project. See
+ \l{bpkg-cfg-create(1)} for background on configuration types.
+
\h|EXAMPLES|
As an example, consider project \cb{prj} with two packages, \cb{foo}
@@ -205,6 +212,17 @@ namespace bdep
"Don't prompt for confirmation when up/down-grading dependencies."
}
+ bool --create-host-config
+ {
+ "Create a configuration for build-time dependencies without prompt."
+ }
+
+ bool --create-build2-config
+ {
+ "Create a configuration for build system module dependencies without
+ prompt."
+ }
+
bool --implicit
{
"Perform implicit synchronization. This mode is normally used by other