|
From: | Debarshi 'Rishi' Ray |
Subject: | Re: [bug-inetutils] Using argp_failure. |
Date: | Sun, 15 Apr 2007 00:31:09 +0530 |
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? Happy hacking, Debarshi -- GPG key ID: 63D4A5A7 Key server: pgp.mit.edu
[Prev in Thread] | Current Thread | [Next in Thread] |