doc: runcon: use more accurate synopsis format

* src/runcon.c (usage): Align synopsis with format
used in other commands.
* doc/coreutils.texi (runcon invocation): Likewise.
This commit is contained in:
Pádraig Brady
2026-01-11 18:37:33 +00:00
parent 3a9777bdb0
commit 5c238fcadd
2 changed files with 5 additions and 5 deletions
+3 -3
View 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
+2 -2
View 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\