diff options
-rw-r--r-- | support/popthelp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support/popthelp.c b/support/popthelp.c index 95f3b4b..101ecc7 100644 --- a/support/popthelp.c +++ b/support/popthelp.c @@ -10,9 +10,9 @@ #include "popt.h" #include "poptint.h" -static void displayArgs(poptContext con, int key, const char * arg, - void * data) { - if (key == '?') +static void displayArgs(poptContext con, struct poptOption * key, + const char * arg, void * data) { + if (key->shortName== '?') poptPrintHelp(con, stderr, 0); else poptPrintUsage(con, stderr, 0); |