diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-07 15:59:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-07 15:59:37 +0200 |
commit | b1078fdb9fac747c19dbdacd24c2838aae7d9f6b (patch) | |
tree | 3452bab97d91b063ac3cac2cb3d84ae184c21858 /bpkg/cfg-create-options.cli | |
parent | 8f94aaa067426a259f5396abdaf4945671799b5c (diff) |
Implement cfg-create command
Diffstat (limited to 'bpkg/cfg-create-options.cli')
-rw-r--r-- | bpkg/cfg-create-options.cli | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bpkg/cfg-create-options.cli b/bpkg/cfg-create-options.cli new file mode 100644 index 0000000..24bc102 --- /dev/null +++ b/bpkg/cfg-create-options.cli @@ -0,0 +1,41 @@ +// file : bpkg/cfg-create-options.cli +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +include <bpkg/common-options.cli>; + +/* +"\section=1" +"\name=bpkg-cfg-create" + +"\h{SYNOPSIS} + +bpkg cfg-create [<options>] [(<module>|<conf-var>)...]" + +"\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 not exist (in which case it will be created) +or to be empty." +*/ + +namespace bpkg +{ + class cfg_create_options: common_options + { + dir_path --directory | -d (".") + { + "<dir>", + "Create configuration in <dir> rather than in the current working + directory." + }; + + bool --wipe + { + "Wipe the configuration directory clean before creating the new + configuration." + }; + }; +} |