Update zfs program command usage

Update the zfs(8) man page to clearly describe that arguments for
channel programs are to be listed after the -- sentinel which
terminates argument processing.  This behavior is supported by
getopt on Linux, FreeBSD, and Illumos according to each platforms
respective man pages.

    zfs program [-jn] [-t instruction-limit] [-m memory-limit]
        pool script [--] arg1 ...

Reviewed-by: Clint Armstrong <clint@clintarmstrong.net>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9056
Closes #9428
This commit is contained in:
Brian Behlendorf 2019-10-10 09:49:45 -07:00 committed by Tony Hutter
parent 8af362c3e9
commit 90bc5ca5e1

View File

@ -305,7 +305,8 @@
.Op Fl t Ar instruction-limit .Op Fl t Ar instruction-limit
.Op Fl m Ar memory-limit .Op Fl m Ar memory-limit
.Ar pool script .Ar pool script
.Op Ar arg1 No ... .Op --
.Ar arg1 No ...
.Nm .Nm
.Cm load-key .Cm load-key
.Op Fl nr .Op Fl nr
@ -4469,7 +4470,8 @@ Display the path's inode change time as the first column of output.
.Op Fl t Ar instruction-limit .Op Fl t Ar instruction-limit
.Op Fl m Ar memory-limit .Op Fl m Ar memory-limit
.Ar pool script .Ar pool script
.Op Ar arg1 No ... .Op --
.Ar arg1 No ...
.Xc .Xc
Executes Executes
.Ar script .Ar script