From 33e31295462764ff2d95c361e877a460026efbf0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 19 Mar 2018 12:41:47 +0200 Subject: Add support for package-specific options in pkg-build --- bpkg/pkg-build.cli | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'bpkg/pkg-build.cli') 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." -- cgit v1.1