summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
authorKarel Zak2017-01-19 12:01:51 +0100
committerKarel Zak2017-01-19 12:04:05 +0100
commit281873b87461daaf25414345a92e8e33b36b8bbd (patch)
tree45efb306cfb1fe7fa1327f6beb61212aec157bc5 /login-utils
parentMerge branch 'termutils-typo' of https://github.com/The-42/util-linux (diff)
downloadkernel-qcow2-util-linux-281873b87461daaf25414345a92e8e33b36b8bbd.tar.gz
kernel-qcow2-util-linux-281873b87461daaf25414345a92e8e33b36b8bbd.tar.xz
kernel-qcow2-util-linux-281873b87461daaf25414345a92e8e33b36b8bbd.zip
runuser: add "--" to SYNOPSIS
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/runuser.12
-rw-r--r--login-utils/su-common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/login-utils/runuser.1 b/login-utils/runuser.1
index da7ade25a..40b6f9b3a 100644
--- a/login-utils/runuser.1
+++ b/login-utils/runuser.1
@@ -4,7 +4,7 @@ runuser \- run a command with substitute user and group ID
.SH SYNOPSIS
.BR runuser " [options] " \-u
.I user
-.IR "command " [ argument ...]
+.RI "[[\-\-] " command " ["argument "...]]"
.LP
.BR runuser " [options] [" \- ]
.RI [ user " [" argument "...]]"
diff --git a/login-utils/su-common.c b/login-utils/su-common.c
index 6a50222ef..fb5497d29 100644
--- a/login-utils/su-common.c
+++ b/login-utils/su-common.c
@@ -671,7 +671,7 @@ usage (int status)
{
if (su_mode == RUNUSER_MODE) {
fputs(USAGE_HEADER, stdout);
- printf (_(" %s [options] -u <user> <command>\n"), program_invocation_short_name);
+ printf (_(" %s [options] -u <user> [[--] <command>]\n"), program_invocation_short_name);
printf (_(" %s [options] [-] [<user> [<argument>...]]\n"), program_invocation_short_name);
fputs (_("\n"
"Run <command> with the effective user ID and group ID of <user>. If -u is\n"