[ < ] [ > ]   [ << ] [ 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 August 21, 2015 using texi2html 1.82.