diff options
author | Jim Meyering <jim@meyering.net> | 1999-03-31 04:11:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-03-31 04:11:35 +0000 |
commit | 39090114f0812d93ce9c065a6f2fae02f6e06d50 (patch) | |
tree | b093b7942c03b50a9da30be4850c9dc011467b99 /src/echo.c | |
parent | b2513fc340ff971964709e3b19694423ec83ece3 (diff) | |
download | coreutils-39090114f0812d93ce9c065a6f2fae02f6e06d50.tar.xz |
(PROGRAM_NAME, AUTHORS): Define and use.
Diffstat (limited to 'src/echo.c')
-rw-r--r-- | src/echo.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; |