summaryrefslogtreecommitdiffstats
path: root/bdep/new.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-05 17:38:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-05 17:38:25 +0200
commit0b2f299cd3a9db3744a79ca71edb793f5686f236 (patch)
tree5c047b29695b830bcc6223e7e0afba8a235d3621 /bdep/new.cxx
parent322545a2d0ee46025bccdddfb96406332f97fe1f (diff)
downloadbdep-0b2f299cd3a9db3744a79ca71edb793f5686f236.tar.gz
bdep-0b2f299cd3a9db3744a79ca71edb793f5686f236.tar.xz
bdep-0b2f299cd3a9db3744a79ca71edb793f5686f236.zip
Allow overriding project directory in new command
Diffstat (limited to 'bdep/new.cxx')
-rw-r--r--bdep/new.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index ce6d1ca..7589dca 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -97,8 +97,9 @@ namespace bdep
else
s = n;
- dir_path prj (n);
+ dir_path prj (o.directory_specified () ? o.directory () : dir_path (n));
prj.complete ();
+ prj.normalize ();
// If the directory already exists, make sure it is empty. Otherwise
// create it.