From 39090114f0812d93ce9c065a6f2fae02f6e06d50 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 31 Mar 1999 04:11:35 +0000 Subject: (PROGRAM_NAME, AUTHORS): Define and use. --- src/echo.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/echo.c') diff --git a/src/echo.c b/src/echo.c index a451cda02..bbb37f4f1 100644 --- a/src/echo.c +++ b/src/echo.c @@ -21,6 +21,11 @@ #include "system.h" #include "long-options.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "echo" + +#define AUTHORS "FIXME unknown" + /* echo [-neE] [arg ...] Output the ARGs. If -n is specified, the trailing newline is suppressed. If the -e option is given, interpretation of the @@ -114,8 +119,8 @@ main (int argc, char **argv) /* Don't recognize --help or --version if POSIXLY_CORRECT is set. */ if (getenv ("POSIXLY_CORRECT") == NULL) - parse_long_options (argc, argv, "echo", GNU_PACKAGE, VERSION, - "FIXME unknown", usage); + parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + AUTHORS, usage); else allow_options = 0; -- cgit v1.2.3-54-g00ecf