summaryrefslogtreecommitdiff
path: root/src/pinky.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/pinky.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/pinky.c')
-rw-r--r--src/pinky.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/pinky.c b/src/pinky.c
index 74d0a8902..8df3cfb13 100644
--- a/src/pinky.c
+++ b/src/pinky.c
@@ -467,20 +467,24 @@ usage (int status)
else
{
printf (_("Usage: %s [OPTION]... [USER]...\n"), program_name);
- printf (_("\
+ fputs (_("\
\n\
-l produce long format output for the specified USERs\n\
-b omit the user's home directory and shell in long format\n\
-h omit the user's project file in long format\n\
-p omit the user's plan file in long format\n\
-s do short format output, this is the default\n\
+"), stdout);
+ fputs (_("\
-f omit the line of column headings in short format\n\
-w omit the user's full name in short format\n\
-i omit the user's full name and remote host in short format\n\
-q omit the user's full name, remote host and idle time\n\
in short format\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);
+ printf (_("\
\n\
A lightweight `finger' program; print user information.\n\
The utmp file will be %s.\n\