From 2fae9e5d26536fc61ad06a3d295c9bb8e40d215e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Dec 2001 20:46:30 +0000 Subject: Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION instead of hard-coding --help and --version descriptions. Split --help output into smaller pieces. Use fputs, not printf. --- src/whoami.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/whoami.c') diff --git a/src/whoami.c b/src/whoami.c index 3767074e6..ec20bb67a 100644 --- a/src/whoami.c +++ b/src/whoami.c @@ -1,5 +1,5 @@ /* whoami -- print effective userid - Copyright (C) 89,90, 1991-1997, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 89,90, 1991-1997, 1999, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -50,12 +50,13 @@ usage (int status) else { printf (_("Usage: %s [OPTION]...\n"), program_name); - printf (_("\ + fputs (_("\ Print the user name associated with the current effective user id.\n\ Same as id -un.\n\ \n\ - --help display this help and exit\n\ - --version output version information and exit\n")); +"), stdout); + fputs (HELP_OPTION_DESCRIPTION, stdout); + fputs (VERSION_OPTION_DESCRIPTION, stdout); puts (_("\nReport bugs to .")); } exit (status); -- cgit v1.2.3-54-g00ecf