aboutsummaryrefslogtreecommitdiff
path: root/bdep/new.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-12-13 12:01:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-12-13 12:01:21 +0200
commit151c64b5d7ae3c2f506f8a94603957f53e0b2dbb (patch)
tree4f088bb8d12e227d9fdc5ebeb50e8999e65d700c /bdep/new.cli
parent1d85dec79e6b5dab3b1a7988f95603a8918e2993 (diff)
Allow specifying directory component as part of package name in bdep-new
The behavior is equivalent to specifying the directory with --output-dir|-o: bdep new foo/hello bdep new -o foo/hello hello
Diffstat (limited to 'bdep/new.cli')
-rw-r--r--bdep/new.cli3
1 files changed, 3 insertions, 0 deletions
diff --git a/bdep/new.cli b/bdep/new.cli
index 3ec489c..cdc84c3 100644
--- a/bdep/new.cli
+++ b/bdep/new.cli
@@ -44,6 +44,9 @@ namespace bdep
\cb{--source} first create according to <spec> a new \cb{build2}
project/package called <name> in the <name> subdirectory of the current
working directory (unless overridden with \c{\b{--output-dir}|\b{-o}}).
+ If <name> contains a directory component, then the project/package is
+ created in this directory, as if it was specified 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