help-gengetopt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gengetopt] Feature request: write_into_file prints *_arg, too


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] Feature request: write_into_file prints *_arg, too
Date: Mon, 12 Nov 2007 11:23:08 +0100
User-agent: Mozilla-Thunderbird 2.0.0.6 (X11/20071009)

Papp Gyozo (VBuster) wrote:
Hi,

I think it vould be very handsome for diagnosting purposes, if not
only can the options' _orig field be printed/dumped by the parser but
their translated/interpreted _arg fields as well, probably as a
comment:

option = "ele" # element

The point here is that application may alter the user-supplied
arguments, thus when dumping the actual config it may worth knowing
what the application really thinks abou the options' actual value.


Hi there!

yes that'd be helpful; of course, this makes sense only for options with values right?

What do you think about it? I'll probably come up with a patch if I
find how to do it ;)

well it should be "quite" simple:

- first of all, I assume this will be done only for options with values
- in this case, output the element of the array holding the string values for an option with values (using the correct index)

what do you think?

Notice that I'd avoid print numeric values since their conversion into strings highly depends on how you format them (I'm talking about numbers with decimals, e.g.)

Or were you taking about different scenarios?

cheers
        Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net





reply via email to

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