unzip: Document optional member list

Submitted by:	Pat Maddox (man page)
PR:		267426
MFC after:	2 weeks
This commit is contained in:
Yoshihiro Takahashi 2023-01-02 13:17:27 +09:00
parent e84e44215f
commit a1f28ec729
2 changed files with 10 additions and 3 deletions

View File

@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd September 25, 2021
.Dd January 2, 2023
.Dt UNZIP 1
.Os
.Sh NAME
@ -38,6 +38,7 @@
.Op Fl x Ar pattern
.Op Fl P Ar password
.Ar zipfile
.Op Ar member ...
.Sh DESCRIPTION
.\" ...
The following options are available:
@ -120,6 +121,11 @@ mode changes the way in which additional arguments are parsed.
Currently only
.Xr zipinfo 1L
mode 1 is supported, which lists the file names one per line.
.It Ar [member ...]
Optional list of members to extract from the zipfile.
Can include patterns, e.g.
.Ar 'memberdir/*'
will extract all files and dirs below memberdir.
.El
.Pp
Note that only one of

View File

@ -998,8 +998,9 @@ static void
usage(void)
{
fprintf(stderr, "Usage: unzip [-aCcfjLlnopqtuvyZ1] [-d dir] "
"[-x pattern] [-P password] zipfile\n");
fprintf(stderr,
"Usage: unzip [-aCcfjLlnopqtuvyZ1] [-d dir] [-x pattern] [-P password] zipfile\n"
" [member ...]\n");
exit(EXIT_FAILURE);
}