summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Troan <ewt@src.gnome.org>1998-10-12 18:25:56 +0000
committerErik Troan <ewt@src.gnome.org>1998-10-12 18:25:56 +0000
commit26a7e526ec4a7bb64003503a5d1a51fbf54a126c (patch)
tree511a56f722784aab5d0ab67417668eca4f4b0f0a
parent12ac84757c30541a175a5f687226a7e5bfebe10f (diff)
downloadgnome-common-26a7e526ec4a7bb64003503a5d1a51fbf54a126c.tar.gz
fixed --help
svn path=/trunk/; revision=439
-rw-r--r--support/popthelp.c6
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);