[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [help-gengetopt] Feature request
From: |
Gyozo, PAPP (VBuster) |
Subject: |
RE: [help-gengetopt] Feature request |
Date: |
Mon, 18 Oct 2004 15:00:45 +0200 |
Hi Christian,
you may look the src/skels/*.h_skel file to get familiar how and from what
gengetopt generates the compiled C files.
If you can arrange the templates in the right way, you 'all almost do the half
of the work. Keep in mind that the new gengenopt (the upcoming 2.13) uses
gengen 0.6 to compile these templates. So maybe, you should start there! The
major improvement is that you can add conditional parts to the template like
this:
(see http://www.lorenzobettini.it/software/gengen/gengen.html#SEC7 for more
details!)
void
@address@hidden (void)
{
@address@hidden ();
@IF@ has_purpose @THEN@
printf("\n%s\n", "@purpose@");
@ENDIF@
printf("address@hidden@\n"@if@ no_package @then@, @package_var_name@@endif@);
@help_option_print:method@
}
This really ease the work with gengetopt templates.
" -----Original Message-----
" From: chgans [mailto:address@hidden
" Sent: Sunday, September 12, 2004 1:55 AM
" To: address@hidden
" Subject: [help-gengetopt] Feature request
"
"
" Hi all,
"
" I'm using gengetopt for a project.
" I find useful the group feature, but we can't use nor argoptional nor
" multiple with group.
"
" For multiple, i realize that this can be a little complicated to
" achieve, but for argoptional...
"
" So would it be possible to add the argoptional feature to group
" statement?
"
" I've started to look at gengetopt sources, but it's hard to understand
" how it works, but with any point out, i could try to add these feature
" myself.
"
"
" best regards,
" Christian
"
"
"
" --
" S'il vous plaît, évitez de m'envoyer des attachements au
" format Word ou PowerPoint.
" Microsoft peut (et l'a fait récemment au Kenya et au Brésil)
" disposer de forces de polices locales pour faire respecter
" des lois qui interdisent aux étudiants d'analyser le code,
" qui interdisent à des entrepreneurs de construire de
" nouvelles sociétés, et qui interdisent à des professionnels
" d'offrir leurs services. S'il vous plaît, n'apportez pas
" votre support à ces actions!
" Voir http://www.fsf.org/philosophy/no-word-attachments.fr.html
" --
" chgans AT tuxfamily DOT org
" http://home.gna.org/wisirc/
"
"
"
" _______________________________________________
" Help-gengetopt mailing list
" address@hidden
" http://lists.gnu.org/mailman/listinfo/help-gengetopt
"