don't claim that options are illegal, cf lib/12715

This commit is contained in:
joda 2001-04-24 09:07:43 +00:00
parent da9a00c583
commit 77dec036c1
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: getopt.c,v 1.20 2001/02/19 22:43:21 cgd Exp $ */
/* $NetBSD: getopt.c,v 1.21 2001/04/24 09:07:43 joda Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getopt.c 8.3 (Berkeley) 4/27/95";
#else
__RCSID("$NetBSD: getopt.c,v 1.20 2001/02/19 22:43:21 cgd Exp $");
__RCSID("$NetBSD: getopt.c,v 1.21 2001/04/24 09:07:43 joda Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -106,7 +106,7 @@ getopt(nargc, nargv, ostr)
++optind;
if (opterr && *ostr != ':')
(void)fprintf(stderr,
"%s: illegal option -- %c\n", getprogname(),
"%s: unknown option -- %c\n", getprogname(),
optopt);
return (BADCH);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: getopt_long.c,v 1.11 2001/02/12 23:59:17 cgd Exp $ */
/* $NetBSD: getopt_long.c,v 1.12 2001/04/24 09:07:43 joda Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: getopt_long.c,v 1.11 2001/02/12 23:59:17 cgd Exp $");
__RCSID("$NetBSD: getopt_long.c,v 1.12 2001/04/24 09:07:43 joda Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -97,8 +97,8 @@ static const char recargchar[] = "option requires an argument -- %c";
static const char recargstring[] = "option requires an argument -- %s";
static const char ambig[] = "ambiguous option -- %.*s";
static const char noarg[] = "option doesn't take an argument -- %.*s";
static const char illoptchar[] = "illegal option -- %c";
static const char illoptstring[] = "illegal option -- %s";
static const char illoptchar[] = "unknown option -- %c";
static const char illoptstring[] = "unknown option -- %s";
/*

View File

@ -1,4 +1,4 @@
.\" $NetBSD: getsubopt.3,v 1.4 1998/02/05 18:49:58 perry Exp $
.\" $NetBSD: getsubopt.3,v 1.5 2001/04/24 09:07:43 joda Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -131,7 +131,7 @@ while ((ch = getopt(argc, argv, "ab:")) != \-1) {
break;
case \-1:
if (suboptarg)
error("illegal sub option %s",
error("unknown sub option %s",
suboptarg);
else
error("missing sub option");