[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
AutoOpts supports option processing; option state saving; and program documentation with innumerable features. Here, we list a few obvious ones and some important ones, but the full list is really defined by all the attributes defined in the 8.4 Option Definitions section.
dis-abled
with a disablement prefix.
Such options may default to either an enabled or a disabled state. You
may also provide an enablement prifix, too, e.g., --allow-mumble
and --prevent-mumble
.
--help
and --version
are automatically supported.
--more-help
will page the generated help.
main()
routines can take advantage of all of AutoOpts' functionality.
test-main
is defined, the output `.c' file will contain a
main routine that will be compiled when TEST_<prog-name>_OPTS
is
defined. See section 8.8 AutoOpts for Shell Scripts. If you choose to compile this program,
it is currently capable of producing one of three results:
test-main
may specify a routine that will be called with a
pointer to the option descriptions as the single argument. You must
supply this routine and, obviously, you can cause it to do whatever you
wish it to do.
Explanatory details:
loading rc files saving rc files process a text string for options
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |