comparison src/aim.c @ 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
comparison
equal deleted inserted replaced
2119:02cbc4f76b77 2120:9e2475cb0010
548 #else 548 #else
549 gtk_init(&argc, &argv); 549 gtk_init(&argc, &argv);
550 #endif 550 #endif
551 551
552 /* scan command-line options */ 552 /* scan command-line options */
553 #ifdef USE_GNOME
553 opterr = 0; 554 opterr = 0;
555 #else
556 opterr = 1;
557 #endif
554 while ((opt = getopt_long(argc, argv, "ahu:f:v", 558 while ((opt = getopt_long(argc, argv, "ahu:f:v",
555 long_options, NULL)) != -1) { 559 long_options, NULL)) != -1) {
556 switch (opt) { 560 switch (opt) {
557 case 'u': /* set user */ 561 case 'u': /* set user */
558 opt_user = 1; 562 opt_user = 1;
568 opt_version = 1; 572 opt_version = 1;
569 break; 573 break;
570 case 'h': /* help */ 574 case 'h': /* help */
571 opt_help = 1; 575 opt_help = 1;
572 break; 576 break;
577 #ifndef USE_GNOME
578 case '?':
579 default:
580 show_usage(0, argv[0]);
581 return 0;
582 break;
583 #endif
573 } 584 }
574 } 585 }
575 586
576 #endif /* USE_APPLET */ 587 #endif /* USE_APPLET */
577 588