diff options
author | Sami Kerola | 2013-08-18 01:50:08 +0200 |
---|---|---|
committer | Sami Kerola | 2013-08-29 19:14:07 +0200 |
commit | 1e6f6cdb846cc8ad3386d8973995877fd7bd24ad (patch) | |
tree | 2b39541b6d248618e0d572a6764f78f416a393e5 /term-utils/mesg.c | |
parent | wall: sync usage() with howto-usage-function.txt (diff) | |
download | kernel-qcow2-util-linux-1e6f6cdb846cc8ad3386d8973995877fd7bd24ad.tar.gz kernel-qcow2-util-linux-1e6f6cdb846cc8ad3386d8973995877fd7bd24ad.tar.xz kernel-qcow2-util-linux-1e6f6cdb846cc8ad3386d8973995877fd7bd24ad.zip |
mesg: sync usage() with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils/mesg.c')
-rw-r--r-- | term-utils/mesg.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/term-utils/mesg.c b/term-utils/mesg.c index 430236fac..097fb9c93 100644 --- a/term-utils/mesg.c +++ b/term-utils/mesg.c @@ -68,16 +68,16 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out) { - fputs(_("\nUsage:\n"), out); + fputs(USAGE_HEADER, out); /* TRANSLATORS: this program uses for y and n rpmatch(3), * which means they can be translated. */ fprintf(out, _(" %s [options] [y | n]\n"), program_invocation_short_name); - - fputs(_("\nOptions:\n"), out); - fputs(_(" -v, --verbose explain what is being done\n" - " -V, --version output version information and exit\n" - " -h, --help output help screen and exit\n\n"), out); + fputs(USAGE_OPTIONS, out); + fputs(_(" -v, --verbose explain what is being done\n"), out); + fputs(USAGE_HELP, out); + fputs(USAGE_VERSION, out); + fprintf(out, USAGE_MAN_TAIL("mesg(1)")); exit(out == stderr ? MESG_EXIT_FAILURE : EXIT_SUCCESS); } @@ -106,8 +106,7 @@ int main(int argc, char *argv[]) verbose = TRUE; break; case 'V': - printf(_("%s from %s\n"), program_invocation_short_name, - PACKAGE_STRING); + printf(UTIL_LINUX_VERSION); exit(EXIT_SUCCESS); case 'h': usage(stdout); |