for (struct opt_item * item = sec->opt; item->cls != OPT_CL_END; item++) {
if (item->cls == OPT_CL_SECTION)
opt_help_scan(h, item->u.section);
+ else if (item->cls == OPT_CL_HOOK)
+ ;
else {
struct opt_precomputed opt;
opt_precompute(&opt, item);
void opt_handle_help(struct opt_item * opt UNUSED, const char * value UNUSED, void * data)
{
- opt_help(data);
+ struct opt_context *oc = data;
+ opt_help(oc->options);
exit(0);
}