From 974a8c152bf7c9a4a5ce3c45808af65657c2ff1f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 8 Feb 2018 12:44:06 +0200 Subject: Add --for|-f 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. --- bpkg/pkg-build.cli | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'bpkg/pkg-build.cli') diff --git a/bpkg/pkg-build.cli b/bpkg/pkg-build.cli index f322a07..042ece6 100644 --- a/bpkg/pkg-build.cli +++ b/bpkg/pkg-build.cli @@ -69,6 +69,14 @@ namespace bpkg "Assume the answer to all prompts is \cb{yes}." } + string --for|-f + { + "", + "Instead of the default \cb{update} build system operation, perform the + \cb{update-for-} variant where is normally + \cb{install} or \cb{test}." + } + bool --drop-prerequisite|-D { "Drop without confirmation prerequsite packages that were automatically @@ -93,15 +101,15 @@ namespace bpkg their prerequisites being upgraded or downgraded." } - bool --print-only|-p + bool --configure-only|-c { - "Print to \cb{STDOUT} what would be done without actually doing - anything." + "Configure all the packages but don't update." } - bool --configure-only|-c + bool --print-only|-p { - "Configure all the packages but don't update." + "Print to \cb{STDOUT} what would be done without actually doing + anything." } }; } -- cgit v1.1