|
From: | Lorenzo Bettini |
Subject: | Re: [help-gengetopt] FEATURE request: getopt_longonly? |
Date: | Fri, 22 Oct 2004 13:57:51 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040929 |
Gyozo, PAPP (VBuster) wrote:
" Gyozo, PAPP (VBuster) wrote: " > Hi," > " > what about to add the choice if getopt_long() or " getopt_longonly() be used in the generated source depending " on a command line switch?" > I'll come up with a little patch if I have some time to test it." > " " uh! I know it's a shame, but I didn't even know about " getopt_longonly! :-) " " does it accept only long options?Not really, it also accepts short options, but it "prefers" long ones in a way that '-' as well as '--' __can__ introduce long-named options. It checks first if the commandline argument starts with a long option or its unique abbrevation, if the first alphanumeric character does not match any of the short option characters.
Uh! EVEN BETTER! :-) if you come up with a patch please let me know asap :-) thanks Lorenzo -- +-----------------------------------------------------+ | Lorenzo Bettini ICQ# lbetto, 16080134 | | PhD in Computer Science | | Dip. Sistemi e Informatica, Univ. di Firenze | | Tel +39 055 4796741, Fax +39 055 4796730 | | Florence - Italy (GNU/Linux User # 158233) | | Home Page : http://www.lorenzobettini.it | | http://music.dsi.unifi.it XKlaim language | | http://www.lorenzobettini.it/purple Cover Band | | http://www.gnu.org/software/src-highlite | | http://www.gnu.org/software/gengetopt | | http://www.lorenzobettini.it/software/gengen | | http://www.lorenzobettini.it/software/doublecpp | +-----------------------------------------------------+
[Prev in Thread] | Current Thread | [Next in Thread] |