[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] Re: Argpifying ping.
From: |
Debarshi 'Rishi' Ray |
Subject: |
Re: [bug-inetutils] Re: Argpifying ping. |
Date: |
Sun, 1 Apr 2007 01:11:41 +0530 |
There is a gnulib module 'version-etc' and 'version-etc-fsf' which
provides this text,
That is right. Coreutils uses it, and I copied the format of the
--version output from the one in gnulib's version-etc.c.
maybe it could be enhanced to be usable for argp
too? If it is not already usable, that is.
Coreutils does not use argp ('$ grep -nr "argp" *' does not return
anything). It uses the getopt_long function to retrieve the command
line options; version-etc, version-etc-va functions to print the
--print output; the output of --help is through manual printf
statements.
I am no expert in argp, getopt or gnulib but it seems that
version-etc* and argp might not be compatible. I will still do a bit
more investigation, and ask Jim Meyering if necessary.
I suspect it will change
whenever the GNU coding standards changes.
That is true. But _if_ it is not possible to use version-etc* with
argp after all (without enhancements to either of them), then I find
the current arrangement better. Manually maintaining the --version
output is much simpler than doing the job of argp by hand.
Comments?
Happy hacking,
Debarshi
--
GPG key ID: 63D4A5A7
Key server: pgp.mit.edu
- Re: [bug-inetutils] Argpifying ping., (continued)
- Re: [bug-inetutils] Argpifying ping., Debarshi 'Rishi' Ray, 2007/03/30
- Re: [bug-inetutils] Argpifying ping., Sergey Poznyakoff, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Alfred M. Szmidt, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Debarshi 'Rishi' Ray, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Sergey Poznyakoff, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Debarshi 'Rishi' Ray, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Sergey Poznyakoff, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Alfred M. Szmidt, 2007/03/31
- Re: [bug-inetutils] Argpifying ping., Alfred M. Szmidt, 2007/03/31
- [bug-inetutils] Re: Argpifying ping., Simon Josefsson, 2007/03/31
- Re: [bug-inetutils] Re: Argpifying ping.,
Debarshi 'Rishi' Ray <=
- Re: [bug-inetutils] Argpifying ping., Sergey Poznyakoff, 2007/03/30