[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.5.2.3 AutoOpt-ed Program Calls Regular Library

As with providing an AutoOpt-ed library to a non-AutoOpt-ed program, you must write the option description file as if you were writing all the options for the program, but you should specify the allow-errors global option attribute and you will likely want an alternate usage() function (see “Program Information Attributes” see section Program Information Attributes). In this case, though, when optionProcess() returns, you need to test to see if there might be library options. If there might be, then call the library’s exported routine for handling command line options, set the next-option-to-process with the RESTART_OPT() macro, and recall optionProcess(). Repeat until done.


This document was generated by Bruce Korb on October 16, 2013 using texi2html 1.82.