diff options
author | Jim Meyering <jim@meyering.net> | 1999-03-29 02:56:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-03-29 02:56:52 +0000 |
commit | 1682163674b53e878e1fc21de5653b8dbf9f1207 (patch) | |
tree | 965a58953ca5939de0e3b30a8e25941597a37cea /src/test.c | |
parent | 8ca2ea6a0ed3baab458de1f0d0b3c73bef8fff22 (diff) | |
download | coreutils-1682163674b53e878e1fc21de5653b8dbf9f1207.tar.xz |
PROGRAM_NAME: rename from COMMAND_NAME
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/test.c b/src/test.c index d504f9a14..273a35d8d 100644 --- a/src/test.c +++ b/src/test.c @@ -28,6 +28,9 @@ #include <stdio.h> #include <sys/types.h> +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "test" + #define TEST_STANDALONE 1 #if !defined (TEST_STANDALONE) @@ -79,7 +82,7 @@ extern uid_t geteuid (); #endif /* R_OK */ /* This name is used solely when printing --version information. */ -#define COMMAND_NAME "test" +#define PROGRAM_NAME "test" /* The following few defines control the truth and false output of each stage. TRUE and FALSE are what we use to compute the final output value. @@ -1091,7 +1094,7 @@ main (int margc, char **margv) { /* Don't recognize --help or --version if POSIXLY_CORRECT is set. */ if (getenv ("POSIXLY_CORRECT") == NULL) - parse_long_options (argc, argv, COMMAND_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS, usage); --margc; @@ -1109,7 +1112,7 @@ main (int margc, char **margv) if (pos >= argc) test_exit (SHELL_BOOLEAN (FALSE)); - parse_long_options (argc, argv, COMMAND_NAME, GNU_PACKAGE, VERSION, + parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS, usage); value = posixtest (); |