aboutsummaryrefslogtreecommitdiff
path: root/bdep/new.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/new.cxx')
-rw-r--r--bdep/new.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index d2a4229..318d4aa 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -426,6 +426,10 @@ namespace bdep
: nullptr) :
nullptr);
+ if (source != nullptr && source->absolute ())
+ fail << "invalid value '" << *source << "' for option "
+ << "--type|-t,source: absolute path";
+
// Validate vcs options.
//
vcs vc (o.vcs ());