Add version info

This commit is contained in:
topjohnwu 2017-04-28 03:26:18 +08:00
parent a0de3fc643
commit f799db67eb

1
su.c
View File

@ -33,6 +33,7 @@ static void usage(int status) {
FILE *stream = (status == EXIT_SUCCESS) ? stdout : stderr; FILE *stream = (status == EXIT_SUCCESS) ? stdout : stderr;
fprintf(stream, fprintf(stream,
"MagiskSU v" xstr(MAGISK_VERSION) "\n\n"
"Usage: su [options] [--] [-] [LOGIN] [--] [args...]\n\n" "Usage: su [options] [--] [-] [LOGIN] [--] [args...]\n\n"
"Options:\n" "Options:\n"
" -c, --command COMMAND pass COMMAND to the invoked shell\n" " -c, --command COMMAND pass COMMAND to the invoked shell\n"