aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-build.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-19 12:41:47 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2018-04-19 19:39:55 +0300
commit33e31295462764ff2d95c361e877a460026efbf0 (patch)
tree92d68b3271347399df8b300e03352f939d70c98e /bpkg/pkg-build.cli
parentf02e85435d2b2bebc1fad6ef4b65227011fdcc0a (diff)
Add support for package-specific options in pkg-build
Diffstat (limited to 'bpkg/pkg-build.cli')
-rw-r--r--bpkg/pkg-build.cli32
1 files changed, 24 insertions, 8 deletions
diff --git a/bpkg/pkg-build.cli b/bpkg/pkg-build.cli
index bb85dfd..80abc60 100644
--- a/bpkg/pkg-build.cli
+++ b/bpkg/pkg-build.cli
@@ -90,9 +90,31 @@ namespace bpkg
below) that allow you to control the amount of work that will be done."
}
- class pkg_build_options: configuration_options
+ class pkg_build_pkg_options
{
- "\h|PKG-BUILD OPTIONS|"
+ "\h|PKG-BUILD PACKAGE OPTIONS|
+
+ The following options can be grouped to apply to a specific package as
+ well as specified globally, in which case they apply to all the specified
+ packages."
+
+ bool --dependency
+ {
+ "Build, upgrade, or downgrade a package as a dependency rather than to
+ hold."
+ }
+
+ bool --keep-out
+ {
+ "Keep output directories of external packages between upgrades and
+ downgrades. Refer to \l{bpkg-pkg-disfigure(1)} for details."
+ }
+ };
+
+ class pkg_build_options: configuration_options,
+ pkg_build_pkg_options
+ {
+ "\h|PKG-BUILD GLOBAL OPTIONS|"
bool --yes|-y
{
@@ -142,12 +164,6 @@ namespace bpkg
anything."
}
- bool --keep-out
- {
- "Keep output directories of external packages between upgrades and
- downgrades. Refer to \l{bpkg-pkg-disfigure(1)} for details."
- }
-
bool --no-fetch
{
"Don't fetch repositories specified as part of the build command."