From: Jim Meyering Date: Thu, 4 Mar 1999 14:02:14 +0000 (+0000) Subject: (main): Include author name argument in call to parse_long_options. X-Git-Tag: FILEUTILS-4_0e~216 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff743d54518df91ff57420a2a7a1e4cd72607bf7;p=platform%2Fupstream%2Fcoreutils.git (main): Include author name argument in call to parse_long_options. --- diff --git a/src/basename.c b/src/basename.c index 3c9b37f..1a922e1 100644 --- a/src/basename.c +++ b/src/basename.c @@ -93,7 +93,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "basename", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "basename", GNU_PACKAGE, VERSION, + "FIXME unknown", usage); if (argc == 1 || argc > 3) { diff --git a/src/chroot.c b/src/chroot.c index 59514e9..128f905 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -61,8 +61,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "chroot", GNU_PACKAGE, VERSION, usage); - + parse_long_options (argc, argv, "chroot", GNU_PACKAGE, VERSION, + "Roland McGrath", usage); if (argc == 1) { error (0, 0, _("too few arguments")); diff --git a/src/dirname.c b/src/dirname.c index 33f217d..c659b24 100644 --- a/src/dirname.c +++ b/src/dirname.c @@ -66,7 +66,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "dirname", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "dirname", GNU_PACKAGE, VERSION, + "David MacKenzie and Jim Meyering", usage); if (argc != 2) { diff --git a/src/echo.c b/src/echo.c index 2bf1f47..a451cda 100644 --- a/src/echo.c +++ b/src/echo.c @@ -114,7 +114,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, usage); + parse_long_options (argc, argv, "echo", GNU_PACKAGE, VERSION, + "FIXME unknown", usage); else allow_options = 0; diff --git a/src/expr.c b/src/expr.c index d3a4efb..18dc2d8 100644 --- a/src/expr.c +++ b/src/expr.c @@ -167,7 +167,8 @@ main (int argc, char **argv) /* Recognize --help or --version only if POSIXLY_CORRECT is not set. */ if (!posixly_correct) - parse_long_options (argc, argv, "expr", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "expr", GNU_PACKAGE, VERSION, + "Mike Parker", usage); if (argc == 1) { diff --git a/src/factor.c b/src/factor.c index df0c8a9..49fd5b1 100644 --- a/src/factor.c +++ b/src/factor.c @@ -174,7 +174,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "factor", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "factor", GNU_PACKAGE, VERSION, + "Paul Rubin", usage); fail = 0; if (argc == 1) diff --git a/src/hostid.c b/src/hostid.c index 5aa31a8..017e470 100644 --- a/src/hostid.c +++ b/src/hostid.c @@ -63,7 +63,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "hostid", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "hostid", GNU_PACKAGE, VERSION, + "Jim Meyering", usage); if (argc > 1) { diff --git a/src/hostname.c b/src/hostname.c index f0f1e43..1509437 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -82,7 +82,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "hostname", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "hostname", GNU_PACKAGE, VERSION, + "Jim Meyering", usage); #ifdef HAVE_SETHOSTNAME if (argc == 2) diff --git a/src/nice.c b/src/nice.c index fddb4a9..2cad463 100644 --- a/src/nice.c +++ b/src/nice.c @@ -88,7 +88,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "nice", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "nice", GNU_PACKAGE, VERSION, + "David MacKenzie", usage); for (i = 1; i < argc; /* empty */) { diff --git a/src/printf.c b/src/printf.c index 55dcfaa..b105055 100644 --- a/src/printf.c +++ b/src/printf.c @@ -491,7 +491,8 @@ main (int argc, char **argv) /* Don't recognize --help or --version if POSIXLY_CORRECT is set. */ posixly_correct = (getenv ("POSIXLY_CORRECT") != NULL); if (!posixly_correct) - parse_long_options (argc, argv, "printf", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "printf", GNU_PACKAGE, VERSION, + "David MacKenzie", usage); if (argc == 1) { diff --git a/src/pwd.c b/src/pwd.c index 2e817e3..166d583 100644 --- a/src/pwd.c +++ b/src/pwd.c @@ -60,7 +60,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "pwd", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "pwd", GNU_PACKAGE, VERSION, + "Jim Meyering", usage); if (argc != 1) error (0, 0, _("ignoring non-option arguments")); diff --git a/src/stty.c b/src/stty.c index 0e4e38e..6ceb2e5 100644 --- a/src/stty.c +++ b/src/stty.c @@ -704,7 +704,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "stty", GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, "stty", GNU_PACKAGE, VERSION, + "David MacKenzie", usage); output_type = changed; verbose_output = 0; diff --git a/src/test.c b/src/test.c index dc4f2b5..d504f9a 100644 --- a/src/test.c +++ b/src/test.c @@ -1058,6 +1058,8 @@ INTEGER may also be -l STRING, which evaluates to the length of STRING.\n\ # define main test_command #endif +#define AUTHORS "FIXME: ksb and mjb" + /* * [: * '[' expr ']' @@ -1089,7 +1091,8 @@ 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, usage); + parse_long_options (argc, argv, COMMAND_NAME, GNU_PACKAGE, VERSION, + AUTHORS, usage); --margc; @@ -1106,7 +1109,8 @@ main (int margc, char **margv) if (pos >= argc) test_exit (SHELL_BOOLEAN (FALSE)); - parse_long_options (argc, argv, COMMAND_NAME, GNU_PACKAGE, VERSION, usage); + parse_long_options (argc, argv, COMMAND_NAME, GNU_PACKAGE, VERSION, + AUTHORS, usage); value = posixtest (); if (pos != argc) diff --git a/src/yes.c b/src/yes.c index 4e3f4af..2a6daa2 100644 --- a/src/yes.c +++ b/src/yes.c @@ -57,7 +57,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, usage); + parse_long_options (argc, argv, "yes", GNU_PACKAGE, VERSION, + "David MacKenzie", usage); if (argc == 1) while (1)