aboutsummaryrefslogtreecommitdiff
path: root/bdep/config.cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-25 21:34:14 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-26 14:28:45 +0200
commitcc7608840f0002bf929165cee4c74791261dc8c2 (patch)
tree1e628f5259798adcaaa9769578944413b2169b7e /bdep/config.cli
parentf4e192564a6e048eef14f21ab4d269874b6bfba3 (diff)
Add config command tests
Diffstat (limited to 'bdep/config.cli')
-rw-r--r--bdep/config.cli10
1 files changed, 9 insertions, 1 deletions
diff --git a/bdep/config.cli b/bdep/config.cli
index 8248510..44fcfd5 100644
--- a/bdep/config.cli
+++ b/bdep/config.cli
@@ -68,7 +68,15 @@ namespace bdep
As a shortcut, if \ci{cfg-name} is not specified and \ci{cfg-dir} is
a simple path that starts with \cb{@}, then it is treated as the name
and the configuration directory is assumed to be
- \c{\i{prj-dir}\b{-}\i{cfg-name}}.
+ \c{\i{prj-dir}\b{-}\i{cfg-name}}. Note that in case of \c{create},
+ \ci{cfg-dir} must be preceded with \cb{--} (double dash) option to
+ disambiguate it from \c{\b{@}\i{cfg-name}}. For example, assuming
+ the project directory is \cb{hello}:
+
+ \
+ $ bdep config add @clang # ../hello-clang
+ $ bdep config create -- @gcc cc config.cxx=g++ # ../hello-gcc
+ \
Unless the \cb{--no-default} option is specified, the first added or
created build configuration is designated as the default. Several