From 1682163674b53e878e1fc21de5653b8dbf9f1207 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 29 Mar 1999 02:56:52 +0000 Subject: PROGRAM_NAME: rename from COMMAND_NAME --- src/test.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/test.c') 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 #include +/* 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 (); -- cgit v1.2.3-54-g00ecf