MCPcopy Create free account
hub / github.com/RsyncProject/rsync / itemHelp

Function itemHelp

popt/popthelp.c:542–557  ·  view source on GitHub ↗

* Display popt alias and exec help. * @param fp output file handle * @param items alias/exec array * @param nitems no. of alias/exec entries * @param columns output display width control * @param translation_domain translation domain */

Source from the content-addressed store, hash-verified

540 * @param translation_domain translation domain
541 */
542static void itemHelp(FILE * fp,
543 poptItem items, int nitems,
544 columns_t columns,
545 const char * translation_domain)
546{
547 poptItem item;
548 int i;
549
550 if (items != NULL)
551 for (i = 0, item = items; i < nitems; i++, item++) {
552 const struct poptOption * opt;
553 opt = &item->option;
554 if ((opt->longName || opt->shortName) && !F_ISSET(opt, DOC_HIDDEN))
555 singleOptionHelp(fp, columns, opt, translation_domain);
556 }
557}
558
559/**
560 * Display help text for a table of options.

Callers 1

singleTableHelpFunction · 0.85

Calls 1

singleOptionHelpFunction · 0.85

Tested by

no test coverage detected