bug-inetutils
[Top][All Lists]
Advanced

[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: Thu, 12 Apr 2007 21:40:41 +0200 (CEST)

   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?

Wouldn't it be better to use argp_error in those parts?  Or do those
actually do parsing?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]