[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] Using argp_failure.
From: |
Debarshi 'Rishi' Ray |
Subject: |
[bug-inetutils] Using argp_failure. |
Date: |
Fri, 13 Apr 2007 01:04:10 +0530 |
GNU's argp manual at
http://www.gnu.org/software/libc/manual/html_node/Argp-Helper-Functions.html
says:
"argp_failure is for other problems that occur during parsing but
don't reflect a syntactic problem with the input, such as illegal
values for options, bad phase of the moon, etc."
In case of ping and ping6 it was quite easy to use argp_failure to
handle all those cases of illegal values input as parameters. But in
case of ifconfig everything is spread out in different files:
printif.c changeif.c options.c. So that would require the sharing of
'struct argp_state *state' in all these files.
To what extent do you think we should use argp_failure?
Happy hacking,
Debarshi
--
GPG key ID: 63D4A5A7
Key server: pgp.mit.edu
- [bug-inetutils] Using argp_failure.,
Debarshi 'Rishi' Ray <=