summaryrefslogtreecommitdiff
path: root/src/id.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-12-15 20:46:30 +0000
committerJim Meyering <jim@meyering.net>2001-12-15 20:46:30 +0000
commit2fae9e5d26536fc61ad06a3d295c9bb8e40d215e (patch)
tree95b997f03d6570981ce5d104a4500b6ffd446768 /src/id.c
parent9be58099c4347a6bc27609b88b5f3ac8c1e054ac (diff)
downloadcoreutils-2fae9e5d26536fc61ad06a3d295c9bb8e40d215e.tar.xz
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.
Diffstat (limited to 'src/id.c')
-rw-r--r--src/id.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/id.c b/src/id.c
index 821d00abe..972d10206 100644
--- a/src/id.c
+++ b/src/id.c
@@ -1,5 +1,5 @@
/* id -- print real and effective UIDs and GIDs
- Copyright (C) 1989-2000 Free Software Foundation, Inc.
+ Copyright (C) 1989-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
@@ -85,7 +85,7 @@ usage (int status)
else
{
printf (_("Usage: %s [OPTION]... [USERNAME]\n"), program_name);
- printf (_("\
+ fputs (_("\
Print information for USERNAME, or the current user.\n\
\n\
-a ignore, for compatibility with other versions\n\
@@ -94,11 +94,13 @@ Print information for USERNAME, or the current user.\n\
-n, --name print a name instead of a number, for -ugG\n\
-r, --real print the real ID instead of the effective ID, with -ugG\n\
-u, --user print only the effective user ID\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\
Without any OPTION, print some useful set of identified information.\n\
-"));
+"), stdout);
puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
}
exit (status);