From: Mike B. <mi...@bo...> - 2007-09-12 23:36:54
|
Michael, These options seem fine. Any reason not to include the header info? Its not necessary but I also found it useful. Did someone request the option to remove it? Michael Geng wrote: > Hi Mike, > > I want to introduce a new global definition "#break_lines" to the Genparse > file. It takes an integer argument specifying the page width and automatically > breaks lines on the help screen to this width. E.g. #break_lines 80 would > automatically format all output printed by the usage() function to a width of > 80 characters. > > ==================================== > > Additionally I would like to introduce a new command line switch > > s / static-headers flag "Keep headers of generated files static. Don't add" > "creation date, username, kernel version etc." > > which removes those lines in the header of the generated parser files which are > frequently changing. Below is a Genparse header as it has been generated up to now > (and will continue to be generated if the command switch is not set): > > /****************************************************************************** > ** > ** mycopy4_clp.cc > ** > ** Sun Sep 9 11:55:55 2007 > ** Linux 2.6.19 (#1 Sun Jan 21 11:52:23 CET 2007) i686 > ** linux@mgpc (Michael Geng) > ** > ** Definition of command line parser class > ** > ** Automatically created by genparse v0.6.9 > ** > ** See http://genparse.sourceforge.net for details and updates > ** > ******************************************************************************/ > > If you invoke genparse with -s or --static-headers then the complete header > would look like this: > > /****************************************************************************** > ** > ** mycopy4_clp.cc > ** > ** Definition of command line parser class > ** > ** Automatically created by genparse v0.6.9 > ** > ** See http://genparse.sourceforge.net for details and updates > ** > ******************************************************************************/ > > Michael > -- Mike Borella http://www.borella.net/mike |