cmdline_file_save accepts file handler instead

"Papp Gyozo (VBuster)" <[email protected]>
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
Hi there,

another simple question or "begging" (depends on your attitude) has come to my mind.

It would be great if the generated config file saver function (or an alternative one) could accept FILE* pointer instead of a filename, because this way it would be easy to implement `--show-config' feature which dumps the current settings e.g to stdout (like. gcc -dump* options do)

Background. One of our product has a fairly complex initialization procedure (where to lookup for config file(s) -- system default, customized user and so on). So it sometimes takes considerably long time to figure out the exact configuration with what the program had launched.

Saving to file is OK but in some cases it is preferrable to dump it simply to the stdout (ie. in script and such)


--
Papp, Gyozo
Virusbuster Kft
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.