From 730277b4ab35ecb7179943fb54eef3934480db8c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 7 Dec 2020 13:15:07 +0300 Subject: Add --immediate|-i and --recursive|-r options to update and clean commands --- bdep/clean.cli | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'bdep/clean.cli') 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." + } }; " -- cgit v1.1