aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-fetch-options.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-15 10:58:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-15 10:58:17 +0200
commit333c5953151d6324d83d279a7ac3c53cd1af54b9 (patch)
treee473c5ca4461afcbdf67d5db42e883a1d76564e9 /bpkg/pkg-fetch-options.cli
parentd05f9f046565f2d0d4135912103f96f0e66b454f (diff)
Implement pkg-verify, pkg-fetch commands
Diffstat (limited to 'bpkg/pkg-fetch-options.cli')
-rw-r--r--bpkg/pkg-fetch-options.cli44
1 files changed, 44 insertions, 0 deletions
diff --git a/bpkg/pkg-fetch-options.cli b/bpkg/pkg-fetch-options.cli
new file mode 100644
index 0000000..6f7386b
--- /dev/null
+++ b/bpkg/pkg-fetch-options.cli
@@ -0,0 +1,44 @@
+// file : bpkg/pkg-fetch-options.cli
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+include <bpkg/common-options.cli>;
+
+/*
+"\section=1"
+"\name=bpkg-pkg-fetch"
+
+"\h{SYNOPSIS}
+
+bpkg pkg-fetch [<options>] (<pkg> <ver>)|(-a <archive>)"
+
+"\h{DESCRIPTION}
+
+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
+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."
+*/
+
+namespace bpkg
+{
+ class pkg_fetch_options: common_options
+ {
+ dir_path --directory | -d (".")
+ {
+ "<dir>",
+ "Assume configuration is in <dir> rather than in the current working
+ directory."
+ };
+
+ bool --archive | -a
+ {
+ "Treat the argument as a package archive path rather than package
+ name/version to fetch."
+ };
+ };
+}