From 422afdb14a7a0c141bce59287377bca1b1b34a07 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Sep 2015 13:15:53 +0200 Subject: Add --purge|-p option to pkg-{fetch,unpack} commands --- bpkg/pkg-unpack-options.cli | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bpkg/pkg-unpack-options.cli') diff --git a/bpkg/pkg-unpack-options.cli b/bpkg/pkg-unpack-options.cli index 0fa77a3..7ffcc62 100644 --- a/bpkg/pkg-unpack-options.cli +++ b/bpkg/pkg-unpack-options.cli @@ -19,8 +19,9 @@ fetched (\cb{pkg-fetch}) package. If the \cb{-e|--existing} option is used, then instead of the package name, \cb{pkg-unpack} expects a local path to the existing package source directory. In this case, \cb{bpkg} will use the directory in place, without copying it to the -configuration or package cache directories. It will also not attempt -to remove this directory if the package is purged with the \cb{pkg-purge} +configuration or package cache directories. Also, unless the +\cb{-p|--purge} option is specified, \cb{bpkg} will not attempt to +remove this directory when the package is purged with the \cb{pkg-purge} command." */ @@ -40,5 +41,10 @@ namespace bpkg "Treat the argument as an existing package directory path rather than package name to unpack." }; + + bool --purge|-p + { + "Remove the existing package directory when the package is purged." + }; }; } -- cgit v1.1