aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bdep/new.cli4
-rw-r--r--bdep/new.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/bdep/new.cli b/bdep/new.cli
index 3e037e1..27a982d 100644
--- a/bdep/new.cli
+++ b/bdep/new.cli
@@ -37,7 +37,7 @@ namespace bdep
The \cb{new} command creates and initializes a new \cb{build2} project.
All three forms first create according to <spec> a new \cb{build2}
project called <name> in the <name> subdirectory of the current working
- directory (unless overridden with \c{\b{--directory}|\b{-d}}).
+ directory (unless overridden with \c{\b{--output-dir}|\b{-o}}).
The first form then, unless the \cb{--no-init} option is specified,
initializes an empty project database as if by executing the
@@ -204,7 +204,7 @@ namespace bdep
system-specific."
}
- dir_path --directory|-d
+ dir_path --output-dir|-o
{
"<dir>",
"Create the project in the specified directory."
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 62fc41e..6eb1bd2 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -97,7 +97,7 @@ namespace bdep
else
s = n;
- dir_path prj (o.directory_specified () ? o.directory () : dir_path (n));
+ dir_path prj (o.output_dir_specified () ? o.output_dir () : dir_path (n));
prj.complete ();
prj.normalize ();