chcon: show '--reference' in help text only if LONG_OPTS=y
authorXabier Oneca <xoneca@gmail.com>
Wed, 9 Aug 2017 10:18:36 +0000 (12:18 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 9 Aug 2017 10:18:36 +0000 (12:18 +0200)
Signed-off-by: Xabier Oneca <xoneca@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
selinux/chcon.c

index e77e9ded5f5a60cd667d9e2a70487fcf66cbf053..3ddb2dd46d21bdee59d3c64b79858b7edd8ac62d 100644 (file)
@@ -21,7 +21,9 @@
 //usage:#define chcon_trivial_usage
 //usage:       "[OPTIONS] CONTEXT FILE..."
 //usage:       "\n     chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE..."
+//usage:       IF_LONG_OPTS(
 //usage:       "\n     chcon [OPTIONS] --reference=RFILE FILE..."
+//usage:       )
 //usage:
 //usage:#define chcon_full_usage "\n\n"
 //usage:       "Change the security context of each FILE to CONTEXT\n"