summaryrefslogtreecommitdiff
path: root/src/printenv.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/printenv.c
parent9be58099c4347a6bc27609b88b5f3ac8c1e054ac (diff)
downloadcoreutils-2fae9e5d26536fc61ad06a3d295c9bb8e40d215e.tar.gz
coreutils-2fae9e5d26536fc61ad06a3d295c9bb8e40d215e.tar.bz2
coreutils-2fae9e5d26536fc61ad06a3d295c9bb8e40d215e.zip
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/printenv.c')
-rw-r--r--src/printenv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/printenv.c b/src/printenv.c
index 417ac07b3..a8526c669 100644
--- a/src/printenv.c
+++ b/src/printenv.c
@@ -1,5 +1,5 @@
/* printenv -- print all or part of environment
- Copyright (C) 1989-1997, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1989-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
@@ -65,10 +65,10 @@ Usage: %s [VARIABLE]...\n\
or: %s OPTION\n\
If no environment VARIABLE specified, print them all.\n\
\n\
- --help display this help and exit\n\
- --version output version information and exit\n\
"),
program_name, program_name);
+ fputs (HELP_OPTION_DESCRIPTION, stdout);
+ fputs (VERSION_OPTION_DESCRIPTION, stdout);
puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
}
exit (status);