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-fetch-options.cli | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'bpkg/pkg-fetch-options.cli') diff --git a/bpkg/pkg-fetch-options.cli b/bpkg/pkg-fetch-options.cli index 057bc43..0ad0531 100644 --- a/bpkg/pkg-fetch-options.cli +++ b/bpkg/pkg-fetch-options.cli @@ -19,9 +19,10 @@ name and version from one of the configuration's repositories. If the \cb{-e|--existing} option is used, then instead of the name and version arguments, \cb{pkg-fetch} expects a local path to the existing package archive. In this case, \cb{bpkg} will use the archive in place, without -copying it to the configuration or package cache directories. It will -also not attempt to remove the archive if the package is purged with -the \cb{pkg-purge} command." +copying it to the configuration or package cache directories. Also, +unless the \cb{-p|--purge} option is specified, \cb{bpkg} will not +attempt to remove the archive when the package is purged with the +\cb{pkg-purge} command." */ namespace bpkg @@ -40,5 +41,10 @@ namespace bpkg "Treat the argument as an existing package archive path rather than package name/version to fetch." }; + + bool --purge|-p + { + "Remove the existing package archive when the package is purged." + }; }; } -- cgit v1.1