]> granicus.if.org Git - zfs/commitdiff
Update `zfs program` command usage
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Oct 2019 16:49:45 +0000 (09:49 -0700)
committerGitHub <noreply@github.com>
Thu, 10 Oct 2019 16:49:45 +0000 (09:49 -0700)
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

man/man8/zfs.8

index 09fa2831be9642aabb3c74850db02abe6de36970..ee7a111ed14dd8256d9d646494b477fcf8eb202c 100644 (file)
 .Op Fl t Ar instruction-limit
 .Op Fl m Ar memory-limit
 .Ar pool script
-.Op Ar arg1 No ...
+.Op --
+.Ar arg1 No ...
 .Nm
 .Cm load-key
 .Op Fl nr
@@ -4756,7 +4757,8 @@ Display the path's inode change time as the first column of output.
 .Op Fl t Ar instruction-limit
 .Op Fl m Ar memory-limit
 .Ar pool script
-.Op Ar arg1 No ...
+.Op --
+.Ar arg1 No ...
 .Xc
 Executes
 .Ar script