]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: runcon: use more accurate synopsis format
authorPádraig Brady <P@draigBrady.com>
Sun, 11 Jan 2026 18:37:33 +0000 (18:37 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 11 Jan 2026 18:43:32 +0000 (18:43 +0000)
* src/runcon.c (usage): Align synopsis with format
used in other commands.
* doc/coreutils.texi (runcon invocation): Likewise.

doc/coreutils.texi
src/runcon.c

index 018dd3af69ea2095edb1747fbfa695f49824dd00..e8b24f768057655504932182cfb35c03d592f8fa 100644 (file)
@@ -16993,9 +16993,9 @@ Set range @var{range} in the target security context.
 
 Synopses:
 @example
-runcon @var{context} @var{command} [@var{args}]
-runcon [ -c ] [-u @var{user}] [-r @var{role}] [-t @var{type}]@c
- [-l @var{range}] @var{command} [@var{args}]
+runcon [@var{context} @var{command} [@var{arg}]@dots{}]
+runcon [-c] [-u @var{user}] [-r @var{role}] [-t @var{type}]@c
+ [-l @var{range}] @var{command} [@var{arg}@dots{}]
 @end example
 
 Run @var{command} with completely-specified @var{context}, or with
index 9bb265a707a7116d38276aa30e92b91270a8d396..f7313a752ecf14975381347445e10165e06c0d66 100644 (file)
@@ -74,8 +74,8 @@ usage (int status)
   else
     {
       printf (_("\
-Usage: %s CONTEXT COMMAND [args]\n\
-  or:  %s [ -c ] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n\
+Usage: %s [CONTEXT COMMAND [ARG]...]\n\
+  or:  %s [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [ARG]...\n\
 "), program_name, program_name);
       fputs (_("\
 Run a program in a different SELinux security context.\n\