aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/pkg-fetch-options.cli12
-rw-r--r--bpkg/pkg-fetch.cxx2
2 files changed, 7 insertions, 7 deletions
diff --git a/bpkg/pkg-fetch-options.cli b/bpkg/pkg-fetch-options.cli
index 27b3ad7..a15d899 100644
--- a/bpkg/pkg-fetch-options.cli
+++ b/bpkg/pkg-fetch-options.cli
@@ -16,9 +16,9 @@ bpkg pkg-fetch [<options>] (<pkg> <ver>)|(-a <archive>)"
The \cb{pkg-fetch} command fetches the archive for the specified package
name and version from one of the configuration's repositories. If the
-\cb{-a|--archive} option is used, then instead of the name and version
-arguments, \cb{pkg-fetch} expects a local path to the package archive
-file. In this case, \cb{bpkg} will use the archive in place, without
+\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."
@@ -35,10 +35,10 @@ namespace bpkg
directory."
};
- bool --archive|-a
+ bool --existing|-e
{
- "Treat the argument as a package archive path rather than package
- name/version to fetch."
+ "Treat the argument as an existing package archive path rather than
+ package name/version to fetch."
};
};
}
diff --git a/bpkg/pkg-fetch.cxx b/bpkg/pkg-fetch.cxx
index 89283c6..9d82446 100644
--- a/bpkg/pkg-fetch.cxx
+++ b/bpkg/pkg-fetch.cxx
@@ -34,7 +34,7 @@ namespace bpkg
path a;
bool purge;
- if (o.archive ())
+ if (o.existing ())
{
if (!args.more ())
fail << "archive path argument expected" <<