diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-25 07:10:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-25 07:10:57 +0200 |
commit | 287c71ddc00f0db1436d557042b69c03dc448b13 (patch) | |
tree | 824d66203c59530b856151c94c4bd322eff28562 /bpkg/common-options.cli | |
parent | 5ab55b3efa7be536af146c778ebe457462a886a6 (diff) |
Add support for fetching remote repositories
Wget, curl, and (FreeBSD) fetch are supported.
Diffstat (limited to 'bpkg/common-options.cli')
-rw-r--r-- | bpkg/common-options.cli | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/bpkg/common-options.cli b/bpkg/common-options.cli index 25db69c..afeec77 100644 --- a/bpkg/common-options.cli +++ b/bpkg/common-options.cli @@ -2,6 +2,7 @@ // copyright : Copyright (c) 2014-2015 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file +include <vector>; include <cstdint>; include <bpkg/types>; @@ -29,10 +30,35 @@ namespace bpkg further." }; + path --fetch + { + "<path>", + "The fetch program that should be used to download remote resources. + Currently, \cb{bpkg} recognizes \cb{curl}, \cb{wget}, and \cb{fetch}. + Note that the last component of <path> must contain one of these + names as a substring in order for \cb{bpkg} to recognize which + program is being used. You can also specify additional options that + should be passed to the fetch program with \cb{--fetch-option}. + + If the fetch program is not specified, then \cb{bpkg} will try to + discover if one of the above program is available and use that. + Currently, \cb{bpkg} has the following preference order: \cb{wget} + 1.16 or higher (supports \cb{--show-progress}), \cb{curl}, + \cb{wget}, and \cb{fetch}." + }; + + strings --fetch-option + { + "<opt>", + "Additional option that should be passed to the fetch program. See + \cb{--fetch} for more information on the fetch program. Repeat this + option to specify multiple fetch options." + }; + // The following option is "fake" in that it is actually handled by // argv_file_scanner. We have it here for documentation. // - std::string --options-file + string --options-file { "<file>", "Read additional options from <file> with each option appearing on a |