]> pd.if.org Git - zpackage/blobdiff - doc/zpm-fetchurl.8
fix stray quote
[zpackage] / doc / zpm-fetchurl.8
index 4a269b394f7aeaf042695d8c14629c4cc95e0092..b152f611fe410372d4cfcf254086153d2b5f856b 100644 (file)
@@ -1,12 +1,20 @@
-.TH zpm-fetchurl 8 2019-02-15 "ZPM 0.4"
+.TH zpm-fetchurl 8 2019-03-05 "ZPM 0.7.0"
 .SH NAME
 zpm-fetchurl \- download files
 .SH SYNOPSIS
 .B zpm fetchurl
 [
 .SH NAME
 zpm-fetchurl \- download files
 .SH SYNOPSIS
 .B zpm fetchurl
 [
-.B -ISkKr
+.B -OIrRfnp
 ]
 [
 ]
 [
+.BI -L " redirlimit"
+]
+[
+.BI -z " lastmodfile"
+]
+[
+.BI \-U " useragent"
+[
 .BI -o file
 ]
 .I [ url ]
 .BI -o file
 ]
 .I [ url ]
@@ -27,7 +35,11 @@ dependency.
 output the response header only, implies -r
 .TP
 .B \-r
 output the response header only, implies -r
 .TP
 .B \-r
-output the entire response header, including the header
+output the entire response, including the header
+.TP
+.BI -L " limit"
+Limit the maximum number of redirects to \fIlimit\fR.  The default is
+50.
 .TP
 .B \-S
 output the response status code only
 .TP
 .B \-S
 output the response status code only
@@ -41,8 +53,8 @@ TLS, but zpm-fetchurl uses a trust on first use policy instead.  Root
 certificates are found by default in /etc/zpm/roots.pem, but the ZPM_ROOTFILE
 environment variable can be used to override this.
 .TP
 certificates are found by default in /etc/zpm/roots.pem, but the ZPM_ROOTFILE
 environment variable can be used to override this.
 .TP
-.BI \-R " limit"
-set the limit on following redirects, defaults to 50
+.B \-R
+Output the request header.
 .TP
 .BI \-z " path"
 Only download if remote is newer than the file given by path
 .TP
 .BI \-z " path"
 Only download if remote is newer than the file given by path
@@ -51,11 +63,17 @@ Only download if remote is newer than the file given by path
 Write the output to the file given by \fIpath\fR.  Output is
 written to stdout by default.
 .TP
 Write the output to the file given by \fIpath\fR.  Output is
 written to stdout by default.
 .TP
+.B \-O
+Calculate the output file name from the url.
+.TP
+.B \-n
+Only if newer.  Like \-z, except use the output file name, if any.
+.TP
 .B \-f
 Fail silently on errors.
 .TP
 .B \-f
 Fail silently on errors.
 .TP
-.B \-#
-Output a progress bar.
+.B \-p \-#
+Output a progress bar.  A '#' is accepted for compatibility with curl.
 .SH EXAMPLES
 .TP
 zpm fetchurl -o zpm-0.1.2.zpm https://zoranix.net/repo/packages/zpm-0.1.2.zpm
 .SH EXAMPLES
 .TP
 zpm fetchurl -o zpm-0.1.2.zpm https://zoranix.net/repo/packages/zpm-0.1.2.zpm