summaryrefslogtreecommitdiff
path: root/su
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-02-20 22:38:23 -0800
committerElliott Hughes <enh@google.com>2019-02-20 22:38:23 -0800
commitcf83f019b401326ba3cce9530bb81dfbf368358d (patch)
tree78a8a64c35452c695b9d3a67107233ca40660cb3 /su
parent5e64dcd02e4c03f6bcd3d3cc65f4fc105191a31f (diff)
downloadextras-cf83f019b401326ba3cce9530bb81dfbf368358d.tar.gz
su: fix the command line syntax.
Test: `su --help` Change-Id: I08f2e897b6d472f1748574aa162555ac8adfc05e
Diffstat (limited to 'su')
-rw-r--r--su/su.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/su/su.cpp b/su/su.cpp
index f3e4ff03..1a1ab6bf 100644
--- a/su/su.cpp
+++ b/su/su.cpp
@@ -87,12 +87,12 @@ int main(int argc, char** argv) {
++argv;
if (*argv && (strcmp(*argv, "--help") == 0 || strcmp(*argv, "-h") == 0)) {
fprintf(stderr,
- "usage: su [UID[,GID[,GID2]...]] [COMMAND [ARG...]]\n"
+ "usage: su [WHO [COMMAND...]]\n"
"\n"
- "Switch to WHO (default 'root') and run the given command (default sh).\n"
+ "Switch to WHO (default 'root') and run the given COMMAND (default sh).\n"
"\n"
- "where WHO is a comma-separated list of user, group,\n"
- "and supplementary groups in that order.\n"
+ "WHO is a comma-separated list of user, group, and supplementary groups\n"
+ "in that order.\n"
"\n");
return 0;
}