diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-10 09:30:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-10 09:30:37 +0200 |
commit | ec931aa6550b47461e92062a703e6ef9f4c24b17 (patch) | |
tree | 711af30ebf02f7484dcc931d6b50fc148cd72983 /bpkg/pkg-unpack-options.cli | |
parent | 4e3faacbc3c27e1d01ca95697b34db82cdecdb9d (diff) |
Implement --replace|-r mode for pkg-unpack; improve in pkg-fetch
Diffstat (limited to 'bpkg/pkg-unpack-options.cli')
-rw-r--r-- | bpkg/pkg-unpack-options.cli | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bpkg/pkg-unpack-options.cli b/bpkg/pkg-unpack-options.cli index c9101a9..97386a1 100644 --- a/bpkg/pkg-unpack-options.cli +++ b/bpkg/pkg-unpack-options.cli @@ -22,7 +22,12 @@ a local path to the existing package source directory. In this case, 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." +command. + +If \cb{-e|--existing} is specified together with the \cb{-r|--replace} +option, then \cb{pkg-unpack} will replace the archive and/or source +directory of a package that is already in the \cb{unpacked} or +\cb{fetched} state." */ namespace bpkg @@ -39,5 +44,11 @@ namespace bpkg { "Remove the existing package directory when the package is purged." }; + + bool --replace|-r + { + "Replace the source directory if the package is already unpacked or + fetched. Can only be specified together with \cb{-e|--existing}." + }; }; } |