From a2e7f2beb522d9c7cda01ecfcb552d8e0c46b088 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 May 2018 14:00:14 +0200 Subject: Implement shortcut config add/create versions Now: $ bdep init -C ../hello-clang @clang ... Can be rewritten as: $ bdep init -C @clang ... --- bdep/bdep.cli | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'bdep/bdep.cli') 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 -- cgit v1.1