* Display arguments. * @param con context * @param foo (unused) * @param key option(s) * @param arg (unused) * @param data (unused) */
| 30 | * @param data (unused) |
| 31 | */ |
| 32 | NORETURN |
| 33 | static 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 |
| 49 | static int show_option_defaults = 0; |
nothing calls this directly
no test coverage detected