]> pd.if.org Git - zpackage/blobdiff - doc/zpm-packagehash.8
allow partial package ids in packagehash
[zpackage] / doc / zpm-packagehash.8
index 47601981aa1515beb45e80f25013dfedcda23fd9..7024e829c61529e12418bf71ef674a2b0140c5ba 100644 (file)
@@ -1,25 +1,20 @@
-.TH zpm-packagehash 8 2019-02-14 "ZPM 0.3"
+.TH zpm-packagehash 8 2019-02-15 "ZPM 0.3"
 .SH NAME
 zpm-packagehash \- run packagehash
 .SH SYNOPSIS
-                       case 'f': dbfile = optarg; break;
-                       case 's': set = 1; break;
-                       case 'S': clear = 1; break;
-                       case 'c': check = 1; break;
-                       case 'q': quiet = 1; break;
-                       case 'e': showcurrent = 1; break;
 .B zpm packagehash
 [
 .BI -f " pkgfile"
 ]
 [
-.B -sScqe
+.B -sScqev
 ]
 .RI [ package ] 
 .SH DESCRIPTION
 \fBzpm-packagehash\fR
-calculates, prints, or sets the hash of a package.  The package must
-be specified as a complete package triple.
+calculates, prints, or sets the hash of a package.  The package may
+be specified as a partial package id, which will be looked up as
+if by zpm-findpkg.
 .SH OPTIONS
 .TP
 \-f
@@ -37,6 +32,9 @@ check the package hash against one given as an additional argument
 \-q
 Don't output anything to stdout.
 .TP
+\-v
+When printing hashes, prepend the package id and a space character.
+.TP
 \-e
 Show the current package hash, rather than the calculated one.
 .SH EXAMPLES
@@ -53,3 +51,4 @@ ZPMDB
 Nathan Wagner
 .SH SEE ALSO
 .BR zpm (8)
+.BR zpm-findpkg (8)