From 9e8c3b79d15e1616e2727a15ad024784e65e35f3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 31 Mar 2018 16:38:46 +0200 Subject: Add option verification --- bdep/sync.cxx | 3 +++ 1 file changed, 3 insertions(+) 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. // -- cgit v1.1