From 676a035c863a686391422e690e0a743b0d62d782 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Mar 2018 18:19:59 +0200 Subject: Command line interface synopsis sketches for init and config commands --- bdep/init.cli | 42 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) (limited to 'bdep/init.cli') diff --git a/bdep/init.cli b/bdep/init.cli index 75178f8..f91fbc0 100644 --- a/bdep/init.cli +++ b/bdep/init.cli @@ -6,20 +6,54 @@ include ; "\section=1" "\name=bdep-init" -"\summary=@@ TODO" +"\summary=initialize project dependency management" namespace bdep { { - "", + " + + + + + ", "\h|SYNOPSIS| - \c{\b{bdep init} [] @@ TODO} + \c{\b{bdep init} [] [] [] []\n + \b{bdep init} [] [] \b{--add} [\b{@}]\n + \b{bdep init} [] [] \b{--create} [\b{@}] []\n + \b{bdep init} [] [] \b{--empty}} + + \c{ = \b{--directory}|\b{-d} \n + = (\b{--directory}|\b{-d} )... | \n + = (\b{@} | \b{--config}|\b{-c} )... | \b{--all}|\b{-a}\n + = ( | )...\n + = ( | )...} \h|DESCRIPTION| - The \cb{init} command..." + The \cb{init} command... + + If is omitted, then the default configuration is assumed. + + If is omitted, then the current working directory is + assumed. In this case the current directory must be either a project + directory (), a package directory () or a subdirectory + of package directory. + + are arguments to \cb{bpkg cfg-create}. are arguments + to \cb{bpkg pkg-build}. + + In the first variant the configurations can also be specified as + directories using the \cb{--config|-c} option. + + The second and third variants are semantically equivalent to first + performing \cb{config add} and \cb{config create} (\l{bdep-config(1)}), + respectively, followed by the first variant. In both cases the + \cb{--default|-d} option can be used to make the added/created + configuration default. + " } class init_options: common_options -- cgit v1.1