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

7.5.6.6 Arg Type Hierarchical

arg-type = hierarchy;
arg-type = nested;

This denotes an option with a structure-valued argument, a.k.a. “subopts” in getopts terminology. The argument is parsed and the values made available to the program via the find and find next calls (See section optionFindValue, See section optionGetValue, and see section optionFindNextValue).

 
tOptionValue * val = optionGetValue(VALUE_OPT_OPTN_NAME, "name");
while (val != NULL) {
  process(val);
  val = optionNextValue(VALUE_OPT_OPTN_NAME, val);
  if (wrong_name(val, "name"))
    break;
}

This document was generated by Bruce Korb on July 25, 2010 using texi2html 1.82.

Viewable With Any Browser   autogen Home