From 333c5953151d6324d83d279a7ac3c53cd1af54b9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Sep 2015 10:58:17 +0200 Subject: Implement pkg-verify, pkg-fetch commands --- bpkg/pkg-fetch-options.cli | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 bpkg/pkg-fetch-options.cli (limited to 'bpkg/pkg-fetch-options.cli') 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 ; + +/* +"\section=1" +"\name=bpkg-pkg-fetch" + +"\h{SYNOPSIS} + +bpkg pkg-fetch [] ( )|(-a )" + +"\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 (".") + { + "", + "Assume configuration is in 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." + }; + }; +} -- cgit v1.1