diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-24 16:02:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-24 16:02:58 +0200 |
commit | b7f2331713003e479388d9decc4621e3ee77f716 (patch) | |
tree | bf95cbf2a515db82026a7ff724c5baa258bfd1ff /bdep/init.cli | |
parent | f96f707ae4598e2ecc616a6e2aa47ace943c7eb5 (diff) |
Add --no-sync option to bdep-init
This allows postponing initialization in the build configurations to a later
explicit bdep-sync. One subtle difference with such an explicit sync is that
it will be performed without having the project database open, which can be
important if our initialization triggers an implicit sync (via a hook) of a
project that uses the same database (as is the case with build system module
projects).
Diffstat (limited to 'bdep/init.cli')
-rw-r--r-- | bdep/init.cli | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bdep/init.cli b/bdep/init.cli index cb9c9f8..5071913 100644 --- a/bdep/init.cli +++ b/bdep/init.cli @@ -166,5 +166,12 @@ namespace bdep "<dir>", "Create a new build configuration in <dir>." } + + bool --no-sync + { + "Enter the project into the database but do not initialize it in the + build configurations. The initialization can be finished later with + an explicit \l{bdep-sync(1)} command." + } }; } |