From: Martin Q. <mqu...@us...> - 2006-07-13 19:06:45
|
Update of /cvsroot/flexml/flexml In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv21989 Modified Files: flexml.pl Log Message: And now, document how to override the output files names Index: flexml.pl =================================================================== RCS file: /cvsroot/flexml/flexml/flexml.pl,v retrieving revision 1.51 retrieving revision 1.52 diff -u -d -r1.51 -r1.52 --- flexml.pl 13 Jul 2006 18:58:24 -0000 1.51 +++ flexml.pl 13 Jul 2006 19:06:42 -0000 1.52 @@ -548,7 +548,7 @@ # What to generate "header|H:s" => sub { $header = $_[1] || 'true' }, "dummy|D:s" => sub { $dummy = $_[1] || 'true' }, - "stand-alone|A:s" => sub { $standalone = $_[1] || 'true' }, + "stand-alone|A" => \$standalone, "scanner|S:s" => sub { $scanner = $_[1] || 'true' }, "actions|a=s" => \$actions ); @@ -1755,7 +1755,7 @@ =over 4 -=item B<--stand-alone>, B<-A> +=item B<--stand-alone>, B<-A> Generate a I<stand-alone> scanner application. If combined with B<-a>I<actions> then the application will be named as I<actions> with @@ -1769,23 +1769,24 @@ F<.c>. If combined with B<-A> then instead the stand-alone application will include the action functions. -=item B<--dummy>, B<-D> +=item B<--dummy> B<[>I<app_name>B<]>, B<-D> B<[>I<app_name>B<]> -Generate a dummy application I<name>F<-dummy.c> with just empty -functions to be called by the XML processor. If combined with -B<-a>I<actions> then the application will insert the specified -actions and be named as I<actions> with the extension replaced by -F<.c>. Conflicts with B<-A>; implied by B<-a> unless either of -B<-SHD> is specified. +Generate a dummy application with just empty functions to be called by the +XML processor. If I<app_name> is not specified on the command line, it +defaults to I<name>F<-dummy.c>. If combined with B<-a> I<actions> then the +application will insert the specified actions and be named as I<actions> +with the extension replaced by F<.c>. Conflicts with B<-A>; implied by +B<-a> unless either of B<-SHD> is specified. -=item B<--dummy>, B<-d> +=item B<--debug>, B<-d> Turns on debug mode in the flex scanner and also prints out the details of the DTD analysis performed by I<flexml>. -=item B<--header>, B<-H> +=item B<--header> B<[>I<header_name>B<]>, B<-H> B<[>I<header_name>B<]> -Generate the header file I<name>F<.h>. Conflicts with B<-A>; on by +Generate the header file. If the I<header_name> is not specified on the +command line, defaults to I<name>F<.h>. Conflicts with B<-A>; on by default if none of B<-SHD> specified. =item B<--lineno>, B<-L> @@ -1816,10 +1817,11 @@ Restricts the XML processor to validate only documents with one of the root elements listed in the comma-separated I<roottags>. -=item B<--scanner>, B<-S> +=item B<--scanner> B<[>I<scanner_name>B<]>, B<-S> B<[>I<scanner_name>B<]> -Generate the scanner I<name>F<.l>. Conflicts with B<-A>; on by -default if none of B<-SHD> specified. +Generate the scanner. If I<scanner_name> is not given on command line, it +defaults to I<name>F<.l>. Conflicts with B<-A>; on by default if none of +B<-SHD> specified. =item B<--skel> I<skel>, B<-s> I<skel> |