aboutsummaryrefslogtreecommitdiff
path: root/bdep/clean.cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-07 13:15:07 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-12-08 11:41:29 +0300
commit730277b4ab35ecb7179943fb54eef3934480db8c (patch)
tree0800ec4f46d91bb5431a405f5001cb240893c94e /bdep/clean.cli
parentf970f9b3cc8949f3f32e5fd1888a2679d31d9332 (diff)
Add --immediate|-i and --recursive|-r options to update and clean commands
Diffstat (limited to 'bdep/clean.cli')
-rw-r--r--bdep/clean.cli26
1 files changed, 21 insertions, 5 deletions
diff --git a/bdep/clean.cli b/bdep/clean.cli
index 16e694e..141d20a 100644
--- a/bdep/clean.cli
+++ b/bdep/clean.cli
@@ -27,11 +27,17 @@ namespace bdep
\h|DESCRIPTION|
The \cb{clean} command cleans the project packages in one or more build
- configurations. Underneath it executes the \l{bpkg-pkg-clean(1)} command
- which itself is not much more than the build system \cb{clean} operation
- (see \l{b(1)} for details). As a result, the main utility of this command
- is the ability to refer to build configurations by names and to project
- packages implicitly via the current working directory.
+ configurations. Additionally, immediate or all dependencies of the
+ project packages can be cleaned by specifying the
+ \c{\b{--immediate}|\b{-i}} or \c{\b{--recursive}|\b{-r}} options,
+ respectively.
+
+ Underneath \cb{clean} executes the \l{bpkg-pkg-clean(1)} command which
+ itself is not much more than the build system \cb{clean} operation (see
+ \l{b(1)} for details). As a result, the main utility of this command is
+ the ability to refer to build configurations by names and to project
+ packages implicitly via the current working directory as well as to
+ clean dependencies.
If no project or package directory is specified, then the current working
directory is assumed. If no configuration is specified, then the default
@@ -44,6 +50,16 @@ namespace bdep
class cmd_clean_options: project_options
{
"\h|CLEAN OPTIONS|"
+
+ bool --immediate|-i
+ {
+ "Also clean immediate dependencies."
+ }
+
+ bool --recursive|-r
+ {
+ "Also clean all dependencies, recursively."
+ }
};
"