aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-update.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-08 12:44:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-08 12:44:06 +0200
commit974a8c152bf7c9a4a5ce3c45808af65657c2ff1f (patch)
treed9bbfae21920dc0c35758d803831b2b01dc28ac2 /bpkg/pkg-update.cli
parent994b63e2b60333a83faba52dc6b044fbdbbad61b (diff)
Add --for|-f <operation> option to pkg-update and pkg-build
This allows executing build2 -for-X operations (e.g., update-for-install or update-for-test) in order to minimize the amount of stuff to be updated.
Diffstat (limited to 'bpkg/pkg-update.cli')
-rw-r--r--bpkg/pkg-update.cli11
1 files changed, 10 insertions, 1 deletions
diff --git a/bpkg/pkg-update.cli b/bpkg/pkg-update.cli
index 7922a34..1478963 100644
--- a/bpkg/pkg-update.cli
+++ b/bpkg/pkg-update.cli
@@ -21,7 +21,8 @@ namespace bpkg
The \cb{pkg-update} command updates the previously configured (via
\l{bpkg-pkg-build(1)} or \l{bpkg-pkg-configure(1)}) package. Underneath,
- this command doesn't do much more than run \cb{b update}.
+ this command doesn't do much more than run \cb{b update} (or one of its
+ \c{update-for-*} variants; see \cb{--for|-f}).
Additional command line variables (<vars>, normally \cb{config.*}) can be
passed to the build system by either specifying them before the packages,
@@ -32,5 +33,13 @@ namespace bpkg
class pkg_update_options: configuration_options
{
"\h|PKG-UPDATE OPTIONS|"
+
+ string --for|-f
+ {
+ "<operation>",
+ "Instead of the default \cb{update} build system operation, perform the
+ \cb{update-for-}<operation> variant where <operation> is normally
+ \cb{install} or \cb{test}."
+ }
};
}