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/su.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/su.c') diff --git a/src/su.c b/src/su.c index d7460859f..563489c53 100644 --- a/src/su.c +++ b/src/su.c @@ -431,7 +431,7 @@ usage (int status) else { printf (_("Usage: %s [OPTION]... [-] [USER [ARG]...]\n"), program_name); - printf (_("\ + fputs (_("\ Change the effective user id and group id to that of USER.\n\ \n\ -, -l, --login make the shell a login shell\n\ @@ -440,11 +440,13 @@ Change the effective user id and group id to that of USER.\n\ -m, --preserve-environment do not reset environment variables\n\ -p same as -m\n\ -s, --shell=SHELL run SHELL if /etc/shells allows it\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); + fputs (_("\ \n\ A mere - implies -l. If USER not given, assume root.\n\ -")); +"), stdout); puts (_("\nReport bugs to .")); close_stdout (); } -- cgit v1.2.3-54-g00ecf