aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-15 16:05:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-15 16:05:45 +0200
commit028ac6496e368e7147e9e2e1232f2cd9dff3fe0e (patch)
tree6a44b5d74ae56e8e5ecb1dcb4bd69cfd6715f0c7
parent1ac7b379c695a350d2bde94b9204be818eebc53d (diff)
Rename -a|--archive to -e|--existing in pkg-fetch
-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" <<