[PATCH 2/2] nfs4_getfacl: revise the Usage format as new options added

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Yongcheng Yang <yongcheng.yang@xxxxxxxxx>
---
 nfs4_getfacl/nfs4_getfacl.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/nfs4_getfacl/nfs4_getfacl.c b/nfs4_getfacl/nfs4_getfacl.c
index 2f57866..e068095 100644
--- a/nfs4_getfacl/nfs4_getfacl.c
+++ b/nfs4_getfacl/nfs4_getfacl.c
@@ -135,7 +135,16 @@ static void usage(int label)
 {
 	if (label)
 		fprintf(stderr, "%s %s -- get NFSv4 file or directory access control lists.\n", execname, VERSION);
-	fprintf(stderr, "Usage: %s [-R] file ...\n  -H, --more-help\tdisplay ACL format information\n  -h, --help\tdisplay this help text\n  -R --recursive\trecurse into subdirectories\n  -c, --omit-header\tDo not display the comment header (Do not print filename)\n", execname);
+
+	static const char *gfusage = \
+	"Usage: %s [OPTIONS] file ...\n"
+	" .. where OPTIONS is any (or none) of:\n"
+	"   -H, --more-help	 display ACL format information\n"
+	"   -h, --help		 display this help text\n"
+	"   -R, --recursive	 recurse into subdirectories\n"
+	"   -c, --omit-header	 Do not display the comment header (Do not print filename)\n";
+
+	fprintf(stderr, gfusage, execname);
 }
 
 static void more_help()
-- 
2.20.1




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux