summaryrefslogtreecommitdiff
path: root/src/yes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/yes.c')
-rw-r--r--src/yes.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/yes.c b/src/yes.c
index 2a6daa286..1e0155df0 100644
--- a/src/yes.c
+++ b/src/yes.c
@@ -25,6 +25,11 @@
#include "system.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "yes"
+
+#define AUTHORS "David MacKenzie"
+
/* The name this program was run with. */
char *program_name;
@@ -57,8 +62,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, "yes", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc == 1)
while (1)