1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-05 00:07:51 +02:00

(main): Include author name argument in call to parse_long_options.

This commit is contained in:
Jim Meyering
1999-03-04 14:02:14 +00:00
parent 0f67dfcaa3
commit ff743d5451
14 changed files with 32 additions and 16 deletions
+2 -1
View File
@@ -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)
{
+2 -2
View File
@@ -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"));
+2 -1
View File
@@ -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)
{
+2 -1
View File
@@ -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;
+2 -1
View File
@@ -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)
{
+2 -1
View File
@@ -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)
+2 -1
View File
@@ -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)
{
+2 -1
View File
@@ -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)
+2 -1
View File
@@ -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 */)
{
+2 -1
View File
@@ -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)
{
+2 -1
View File
@@ -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"));
+2 -1
View File
@@ -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;
+6 -2
View File
@@ -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)
+2 -1
View File
@@ -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)