changeset 2120:9e2475cb0010

[gaim-migrate @ 2130] this is fixed better now. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 03 Aug 2001 18:29:47 +0000
parents 02cbc4f76b77
children 388b2d23442a
files src/aim.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/aim.c	Fri Aug 03 18:15:43 2001 +0000
+++ b/src/aim.c	Fri Aug 03 18:29:47 2001 +0000
@@ -550,7 +550,11 @@
 #endif
 
 	/* scan command-line options */
+#ifdef USE_GNOME
 	opterr = 0;
+#else
+	opterr = 1;
+#endif
 	while ((opt = getopt_long(argc, argv, "ahu:f:v",
 				  long_options, NULL)) != -1) {
 		switch (opt) {
@@ -570,6 +574,13 @@
 		case 'h':	/* help */
 			opt_help = 1;
 			break;
+#ifndef USE_GNOME
+		case '?':
+		default:
+			show_usage(0, argv[0]);
+			return 0;
+			break;
+#endif
 		}
 	}