[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] Using argp_failure.
From: |
Alfred M. Szmidt |
Subject: |
Re: [bug-inetutils] Using argp_failure. |
Date: |
Sat, 14 Apr 2007 21:40:59 +0200 (CEST) |
> I have replaced all those uses of 'fprintf (stderr, "...); exit
> (1);" to handle some illegal value passed to an argument,
> etc. with argp_failure to ensure uniformity in the erroring
> reporting.
Maybe we can 'error' from error.h instead of 'argp_failure' in
those places where no argument parsing is taking place to announce
non-parsing errors. This will remove the need for maintaining the
'struct argp_state *state' too across in such cases.
What do you think?
Yeah, lets do that for now. Better to move forward, than stomp in the
same spot. Switching from error() to argp_error/failure or some other
such thing would be quite trivial later one anyway.