AutoOpts

AutoOpts is an integrated part of AutoGen.
Download

AutoOpts Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Bruce Korb
  • Publisher web site:

AutoOpts Tags


AutoOpts Description

AutoOpts is an integrated part of AutoGen. AutoOpts 25:1 is included with AutoGen 5.7.1. AutoOpts project is a very powerful command line option parser consisting of a set of AutoGen templates and a run time library that nearly eliminates the hassle of parsing and documenting command line options. This package allows you to specify several program attributes, up to 100 option types and many attributes for each option.Using your program's option definitions, AutoGen will expand the AutoOpts templates into two C source files and, optionally, a man page document and a tex-info ``invoking'' document section. The header and code files constitute all the information the AutoOpts library needs to parse and handle the command line, environment variables and initialization file (rc file) options. When your program runs, the AutoOpts library will then interpret these compiled data.Additionally, if you wish to use ``getopt_long(3GNU) or getopt(3C)'' to parse the options instead of AutoOpts' libopts library, you may do so. A template (getopt.tpl) is distributed with AutoOpts that will take restricted AutoOpts option definitions and produce the parsing loop that calls either ``getopt(3C)'' or ``getopt_long(3GNU)''. (Which depends on whether long options are enabled in your description.) Be aware, though, that it is significantly crippled when compared with the full set of AutoOpts FeaturesAutoOpts is available either under the terms of the Library GNU Public License, or, at your option, the terms of the advertising-clause-free BSD license. What's New in This Release: · Hierarchically valued options can now be stored with the "--save-opt'' option. · Option state may now be "reset". · This is indistinguishable from the compiled state. · If option state is "saved" later, such an option will not appear in the save file. · There is a new option argument type: time. · Its argument string represents years, months, weeks, days, hours, minutes, and seconds. · The value seen by the program is an integer number of seconds (this is not a date/time.) · The duration of a year is always 365 days and the duration of a month is always 30 days.


AutoOpts Related Software