This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
argp-parse.c: ARGP_PARSE_ARGV0 shouldn't be ignored
- To: bug-hurd@gnu.org, GNU Libc Alpha Testers <libc-alpha@cygnus.com>
- Subject: argp-parse.c: ARGP_PARSE_ARGV0 shouldn't be ignored
- From: Gordon Matzigkeit <gord@fig.org>
- Date: 25 Jul 1998 22:57:31 -0600
Hi!
The current implementation of argp-parse.c makes ARGP_PARSE_ARGV0 do
nothing unless ARGP_NO_ERRS is specified. This is undocumented, and I
don't know what a proper fix is, but the attached patch at least
returns an error code rather failing silently.
1998-07-24 Gordon Matzigkeit <gord@fig.org>
* argp-parse.c (parser_init): Return ENOSYS if they specify
ARGP_PARSE_ARGV0 without ARGP_NO_ERRS, rather than silently
ignoring it.
Thanks,
--
Gordon Matzigkeit <gord@fig.org> //\ I'm a FIG (http://www.fig.org/)
Lovers of freedom, unite! \// I use GNU (http://www.gnu.org/)
argp-silentfail.diff
Copyright (C) 1998 FIG; the creator offers you this gift and wants it to
remain free. See http://www.fig.org/freedom.html for details.
This work may be copied, modified and distributed under the GNU General
Public License (GPL). See http://www.gnu.org/copyleft/gpl.html.