diff mbox series

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

Message ID 20190723062713.20570-2-yongcheng.yang@gmail.com (mailing list archive)
State New, archived
Headers show
Series [1/2] nfs4_getfacl: return 1 for unknown option and won't use '-?' anymore | expand

Commit Message

Yongcheng Yang July 23, 2019, 6:27 a.m. UTC
Signed-off-by: Yongcheng Yang <yongcheng.yang@gmail.com>
---
 nfs4_getfacl/nfs4_getfacl.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
diff mbox series

Patch

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()