aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-drop.cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-07-20 17:37:19 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-07-20 18:03:38 +0300
commit7f52d9bd3627dd3717ea95d7c8e84ae8ced5acaf (patch)
treeeae0ddca3c0878f20a4aaf4f3b097e9262cd5fc0 /bpkg/pkg-drop.cli
parent0e7d370b4056bb92d6e9a2660d4b3db8fe5df75a (diff)
Add --all and --all-pattern options to pkg-drop command
Diffstat (limited to 'bpkg/pkg-drop.cli')
-rw-r--r--bpkg/pkg-drop.cli33
1 files changed, 25 insertions, 8 deletions
diff --git a/bpkg/pkg-drop.cli b/bpkg/pkg-drop.cli
index ac282d6..7c2b0bd 100644
--- a/bpkg/pkg-drop.cli
+++ b/bpkg/pkg-drop.cli
@@ -14,17 +14,21 @@ namespace bpkg
"\h|SYNOPSIS|
- \c{\b{bpkg pkg-drop}|\b{drop} [<options>] <pkg>...}
+ \c{\b{bpkg pkg-drop}|\b{drop} [<options>] <pkg>...\n
+ \b{bpkg pkg-drop}|\b{drop} [<options>] \b{--all}|\b{-a}\n
+ \b{bpkg pkg-drop}|\b{drop} [<options>] (\b{--all-pattern} <pattern>)...}
\h|DESCRIPTION|
- The \cb{pkg-drop} command drops one or more packages from the
- configuration. If the packages being dropped still have dependent
- packages, then those will have to be dropped as well and you will be
- prompted to confirm. And if the packages being dropped have dependency
- packages that would otherwise no longer be used, then they will be
- dropped as well unless the \c{\b{--keep-unused}|\b{-K}} option is
- specified.
+ The \cb{pkg-drop} command drops from the configuration the specified
+ packages (the first form), all the held packages (the second form, see
+ \l{bpkg-pkg-status(1)}), or all the held packages that match any of the
+ specified wildcard patterns (the third form). If the packages being
+ dropped still have dependent packages, then those will have to be dropped
+ as well and you will be prompted to confirm. And if the packages being
+ dropped have dependency packages that would otherwise no longer be used,
+ then they will be dropped as well unless the \c{\b{--keep-unused}|\b{-K}}
+ option is specified.
The \cb{pkg-drop} command also supports several options (described below)
that allow you to control the amount of work that will be done."
@@ -34,6 +38,19 @@ namespace bpkg
{
"\h|PKG-DROP OPTIONS|"
+ bool --all|-a
+ {
+ "Drop all held packages."
+ }
+
+ strings --all-pattern
+ {
+ "<pattern>",
+ "Drop held packages that match the specified wildcard pattern. Repeat
+ this option to match multiple patterns. Note that you may need to quote
+ the pattern to prevent expansion by your shell."
+ }
+
bool --yes|-y
{
"Assume the answer to all prompts is \cb{yes}. Note that this option