aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-31 16:38:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-31 16:38:46 +0200
commit9e8c3b79d15e1616e2727a15ad024784e65e35f3 (patch)
tree57eb629653b006f2329af4ea1874d816b31de5d8
parent6caa434e947a95a6afa4be5dcac87266dd7508ac (diff)
Add option verification
-rw-r--r--bdep/sync.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/bdep/sync.cxx b/bdep/sync.cxx
index f3a68ea..a52d309 100644
--- a/bdep/sync.cxx
+++ b/bdep/sync.cxx
@@ -147,6 +147,9 @@ namespace bdep
if (o.upgrade () && o.patch ())
fail << "both --upgrade|-u and --patch|-p specified";
+ if (o.immediate () && o.recursive ())
+ fail << "both --immediate|-i and --recursive|-r specified";
+
// The --immediate or --recursive option can only be specified with
// an explicit --upgrade or --patch.
//