From 90bc5ca5e14bd182e66abdc51c4d822238b509bf Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 10 Oct 2019 09:49:45 -0700 Subject: [PATCH] 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 Reviewed-by: George Melikov Reviewed-by: loli10K Signed-off-by: Brian Behlendorf Closes #9056 Closes #9428 --- man/man8/zfs.8 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man/man8/zfs.8 b/man/man8/zfs.8 index 8d7b0bbb6fba..229b0ba69bf0 100644 --- a/man/man8/zfs.8 +++ b/man/man8/zfs.8 @@ -305,7 +305,8 @@ .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 @@ -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 m Ar memory-limit .Ar pool script -.Op Ar arg1 No ... +.Op -- +.Ar arg1 No ... .Xc Executes .Ar script