aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-12 15:14:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-12 15:14:22 +0200
commit5f4d347767003b6b5870b97869897835c2cd40a4 (patch)
treefc1cfbd7c27c8f7921cb592570b98465c449496a
parent39366c637e1fdb6ed466f6fef0131e40ab54b6b8 (diff)
Use --output-dir|-o instead of --directory|-d in new command
-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 ();