]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
authorJim Meyering <jim@meyering.net>
Sat, 15 Dec 2001 20:46:30 +0000 (20:46 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Dec 2001 20:46:30 +0000 (20:46 +0000)
instead of hard-coding --help and --version descriptions.
Split --help output into smaller pieces.
Use fputs, not printf.

login-utils/su.c

index d7460859fcb260e6619b747f7ba149e73bb0abc9..563489c539e22ee33c570d305291fa4f6e3105a9 100644 (file)
@@ -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 <bug-sh-utils@gnu.org>."));
       close_stdout ();
     }