aboutsummaryrefslogtreecommitdiff
path: root/bpkg/common.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-24 14:46:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-30 12:32:32 +0200
commit67a0e8d70f0caf8b85e0cf2031333236b2a3dcdf (patch)
tree3a7d71cd1553338cccb19190dc47bfceafd52499 /bpkg/common.cli
parentcf86194e91d55464f9c137258e4157415d196697 (diff)
Add checksum verification
Diffstat (limited to 'bpkg/common.cli')
-rw-r--r--bpkg/common.cli26
1 files changed, 25 insertions, 1 deletions
diff --git a/bpkg/common.cli b/bpkg/common.cli
index 60692c3..4776e73 100644
--- a/bpkg/common.cli
+++ b/bpkg/common.cli
@@ -101,7 +101,7 @@ namespace bpkg
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.
+ discover if one of the above programs 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}."
@@ -115,6 +115,30 @@ namespace bpkg
specify multiple fetch options."
}
+ path --sha256
+ {
+ "<path>",
+ "The sha256 program to be used to calculate SHA256 sums. Currently,
+ \cb{bpkg} recognizes \cb{sha256}, \cb{sha256sum}, and \cb{shasum}.
+ 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 sha256 program with \cb{--sha256-option}.
+
+ If the sha256 program is not specified, then \cb{bpkg} will try to
+ discover if one of the above programs is available and use that.
+ Currently, \cb{bpkg} has the following preference order: \cb{sha256},
+ \cb{sha256sum}, and \cb{shasum}."
+ }
+
+ strings --sha256-option
+ {
+ "<opt>",
+ "Additional option to be passed to the sha256 program. See \cb{--sha256}
+ for more information on the sha256 program. Repeat this option to
+ specify multiple sha256 options."
+ }
+
path --tar = "tar"
{
"<path>",