diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-14 14:00:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-14 14:00:14 +0200 |
commit | a2e7f2beb522d9c7cda01ecfcb552d8e0c46b088 (patch) | |
tree | 41a18eca91fb9a6bdaa9f268cb30582a271f4ef5 /bdep/bdep.cli | |
parent | 9761746f14c81ba0dbd023d31f0e4662c12da66b (diff) |
Implement shortcut config add/create versions
Now:
$ bdep init -C ../hello-clang @clang ...
Can be rewritten as:
$ bdep init -C @clang ...
Diffstat (limited to 'bdep/bdep.cli')
-rw-r--r-- | bdep/bdep.cli | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bdep/bdep.cli b/bdep/bdep.cli index 595e9d9..a4e8c41 100644 --- a/bdep/bdep.cli +++ b/bdep/bdep.cli @@ -188,8 +188,17 @@ namespace bdep $ bdep init -A ../hello-clang @clang \ - We can now use the \l{bdep-status(1)} command to examine the status - of our project in its configurations: + If the configuration directory is next to the project and its name is + in the \c{\i{prj-name}\b{-}\i{cfg-name}} form, then the shortcut + version of the \c{init} can be used instead: + + \ + $ bdep init -C @gcc cc config.cxx=g++ + $ bdep init -A @clang + \ + + After initialization we can use the \l{bdep-status(1)} command to + examine the status of our project in its configurations: \ $ bdep status -a |