]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
runuser: add "--" to SYNOPSIS
authorKarel Zak <kzak@redhat.com>
Thu, 19 Jan 2017 11:01:51 +0000 (12:01 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Jan 2017 11:01:51 +0000 (12:01 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/runuser.1
login-utils/su-common.c

index e748b1ee58465d28c0dcb9b9e947337952985d7e..f8d9c0451ce9c2599b2f2c994c581fa9ff4bf3bf 100644 (file)
@@ -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 "...]]"
index ff20a2f47878772a8b44fd88ef02440c1c3bb5ce..1f4089e2d544e929d3009ca1acb415cd86c1f0be 100644 (file)
@@ -679,7 +679,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"