From 90de1f8b400ea901e40c8784b1780e9643dca712 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Dec 2015 13:55:20 +0200 Subject: Improve cfg-create documentation --- bpkg/cfg-create-options.cli | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/bpkg/cfg-create-options.cli b/bpkg/cfg-create-options.cli index 4ff0973..25bdd7a 100644 --- a/bpkg/cfg-create-options.cli +++ b/bpkg/cfg-create-options.cli @@ -8,24 +8,38 @@ include ; "\name=bpkg-cfg-create" "\summary=create configuration" -/* -"\h{SYNOPSIS} +namespace bpkg +{ + { + " ", -bpkg cfg-create [] [(|)...]" + "\h|SYNOPSIS| -"\h{DESCRIPTION} + \c{\b{bpkg cfg-create} [] [( | )...]} -The \cb{cfg-create} command creates a new \cb{bpkg} configuration with -the specified \cb{build2} modules and configuration variables. Unless -the \cb{--wipe} option is specified, \cb{cfg-create} expects the -configuration directory to not exist (in which case it will be created) -or to be empty." -*/ + \h|DESCRIPTION| + + The \cb{cfg-create} command creates a new \cb{bpkg} configuration with + the specified \cb{build2} modules and configuration variables. Unless + the \cb{--wipe} option is specified, \cb{cfg-create} expects the + configuration directory to be empty or to not exist (in which case it + will be created). + + By default the resulting configuration only loads the \cb{config} and + \cb{install} modules. However, additional modules and, if required, + their configuration variables can be specified as the \cb{cfg-create} + arguments. For example: + + \ + bpkg cfg-create cxx config.cxx=clang++ config.install.root=/usr/local + \ + " + } -namespace bpkg -{ class cfg_create_options: common_options { + "\h|CFG-CREATE OPTIONS|" + dir_path --directory|-d (".") { "", -- cgit v1.1