diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-05 17:38:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-05 17:38:25 +0200 |
commit | 0b2f299cd3a9db3744a79ca71edb793f5686f236 (patch) | |
tree | 5c047b29695b830bcc6223e7e0afba8a235d3621 /bdep/new.cli | |
parent | 322545a2d0ee46025bccdddfb96406332f97fe1f (diff) |
Allow overriding project directory in new command
Diffstat (limited to 'bdep/new.cli')
-rw-r--r-- | bdep/new.cli | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bdep/new.cli b/bdep/new.cli index faad002..c46f57d 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. + directory (unless overriden with \c{\b{--directory}|\b{-d}}). The first form then, unless the \cb{--no-init} option is specified, initializes an empty project database as if by executing the @@ -203,5 +203,11 @@ namespace bdep \cb{git} (default) and \cb{none}. Valid values for <opt> are system-specific." } + + dir_path --directory|-d + { + "<dir>", + "Create the project in the specified directory." + } }; } |