mirror of
https://github.com/tmate-io/tmate.git
synced 2025-04-01 11:26:20 +02:00
Missing options are not illegal.
This commit is contained in:
parent
3dadb349eb
commit
7dbabe84e4
@ -1,4 +1,4 @@
|
|||||||
/* $Id: getopt.c,v 1.1 2009-05-13 22:20:48 nicm Exp $ */
|
/* $Id: getopt.c,v 1.2 2009-08-09 18:35:38 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1987, 1993, 1994
|
* Copyright (c) 1987, 1993, 1994
|
||||||
@ -87,7 +87,7 @@ BSDgetopt(nargc, nargv, ostr)
|
|||||||
++BSDoptind;
|
++BSDoptind;
|
||||||
if (BSDopterr && *ostr != ':')
|
if (BSDopterr && *ostr != ':')
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"%s: illegal option -- %c\n", __progname, BSDoptopt);
|
"%s: unknown option -- %c\n", __progname, BSDoptopt);
|
||||||
return (BADCH);
|
return (BADCH);
|
||||||
}
|
}
|
||||||
if (*++oli != ':') { /* don't need argument */
|
if (*++oli != ':') { /* don't need argument */
|
||||||
|
Loading…
Reference in New Issue
Block a user