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

Function displayArgs

popt/popthelp.c:32–46  ·  view source on GitHub ↗

* Display arguments. * @param con context * @param foo (unused) * @param key option(s) * @param arg (unused) * @param data (unused) */

Source from the content-addressed store, hash-verified

30 * @param data (unused)
31 */
32NORETURN
33static void displayArgs(poptContext con,
34 UNUSED(enum poptCallbackReason foo),
35 struct poptOption * key,
36 UNUSED(const char * arg),
37 UNUSED(void * data))
38{
39 if (key->shortName == '?')
40 poptPrintHelp(con, stdout, 0);
41 else
42 poptPrintUsage(con, stdout, 0);
43
44 poptFreeContext(con);
45 exit(0);
46}
47
48#ifdef NOTYET
49static int show_option_defaults = 0;

Callers

nothing calls this directly

Calls 3

poptPrintHelpFunction · 0.85
poptPrintUsageFunction · 0.85
poptFreeContextFunction · 0.85

Tested by

no test coverage detected