diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-24 08:40:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-24 08:40:10 +0200 |
commit | 72711c8f7827bf53027979eec60c9c17fcba0293 (patch) | |
tree | 645398b3810025812dca3d590ae95f3bf5437604 /bdep/sync.cxx | |
parent | 0f19a5033a99f9d0f786913509711189f17d612a (diff) |
Minor documentation fixes to sync
Diffstat (limited to 'bdep/sync.cxx')
-rw-r--r-- | bdep/sync.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bdep/sync.cxx b/bdep/sync.cxx index f8a5bed..3d2ee9c 100644 --- a/bdep/sync.cxx +++ b/bdep/sync.cxx @@ -78,6 +78,16 @@ namespace bdep { tracer trace ("sync"); + // The --immediate or --recursive option can only be specified with + // an explicit --upgrade or --patch. + // + if (const char* n = (o.immediate () ? "--immediate" : + o.recursive () ? "--recursive" : nullptr)) + { + if (!o.upgrade () && !o.patch ()) + fail << n << " requires explicit --upgrade|-u or --patch|-p"; + } + // We could be running from a package directory (or the user specified one // with -d) that has not been init'ed in this configuration. We want to // diagnose that since such a package will not be present in the bpkg |