Skip to content

Commit 83dde73

Browse files
committed
su: update help message
1 parent d80df98 commit 83dde73

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

native/src/core/su/su.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int quit_signals[] = { SIGALRM, SIGABRT, SIGHUP, SIGPIPE, SIGQUIT, SIGTERM, SIGI
3636

3737
fprintf(stream,
3838
"MagiskSU\n\n"
39-
"Usage: su [options] [-] [user [argument...]]\n\n"
39+
"Usage: su [options] [--] [user [argument...]]\n\n"
4040
"Options:\n"
4141
" -s, --shell SHELL Use SHELL instead of the default " DEFAULT_SHELL "\n"
4242
" -i, --interactive Force pseudo-terminal allocation\n"
@@ -51,7 +51,10 @@ int quit_signals[] = { SIGALRM, SIGABRT, SIGHUP, SIGPIPE, SIGQUIT, SIGTERM, SIGI
5151
" --preserve-environment Preserve the entire environment\n"
5252
" -v, --version Display version number and exit\n"
5353
" -V Display version code and exit\n"
54-
" -h, --help Display this help message and exit\n\n");
54+
" -h, --help Display this help message and exit\n\n"
55+
"--: Force stop options parsing, and also stop when an unknown option is found\n"
56+
"User: The user to switch to (default root), it can be name or uid\n"
57+
"Argument: Pass it to the shell as is\n\n");
5558
exit(status);
5659
}
5760

0 commit comments

Comments
 (0)