Mercurial > pidgin
comparison src/aim.c @ 2119:02cbc4f76b77
[gaim-migrate @ 2129]
better command-line handling for gnome (?). this should be... fixed better.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Fri, 03 Aug 2001 18:15:43 +0000 |
| parents | b66aca8e8dce |
| children | 9e2475cb0010 |
comparison
equal
deleted
inserted
replaced
| 2118:fa3dfde4727e | 2119:02cbc4f76b77 |
|---|---|
| 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 opterr = 1; | 553 opterr = 0; |
| 554 while ((opt = getopt_long(argc, argv, "ahu:f:v", | 554 while ((opt = getopt_long(argc, argv, "ahu:f:v", |
| 555 long_options, NULL)) != -1) { | 555 long_options, NULL)) != -1) { |
| 556 switch (opt) { | 556 switch (opt) { |
| 557 case 'u': /* set user */ | 557 case 'u': /* set user */ |
| 558 opt_user = 1; | 558 opt_user = 1; |
| 568 opt_version = 1; | 568 opt_version = 1; |
| 569 break; | 569 break; |
| 570 case 'h': /* help */ | 570 case 'h': /* help */ |
| 571 opt_help = 1; | 571 opt_help = 1; |
| 572 break; | 572 break; |
| 573 case '?': | |
| 574 default: | |
| 575 show_usage(1, argv[0]); | |
| 576 return 0; | |
| 577 break; | |
| 578 } | 573 } |
| 579 } | 574 } |
| 580 | 575 |
| 581 #endif /* USE_APPLET */ | 576 #endif /* USE_APPLET */ |
| 582 | 577 |
