| 528 " name of away message to use)\n" |
527 " name of away message to use)\n" |
| 529 " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" |
528 " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" |
| 530 " account(s) to use, seperated by commas)\n" |
529 " account(s) to use, seperated by commas)\n" |
| 531 " -n, --loginwin don't automatically login; show login window\n" |
530 " -n, --loginwin don't automatically login; show login window\n" |
| 532 " -u, --user=NAME use account NAME\n" |
531 " -u, --user=NAME use account NAME\n" |
| 533 " -f, --file=FILE use FILE as config\n" |
532 " -c, --config=DIR use DIR for config files\n" |
| 534 " -d, --debug print debugging messages to stdout\n" |
533 " -d, --debug print debugging messages to stdout\n" |
| 535 " -v, --version display the current version and exit\n" |
534 " -v, --version display the current version and exit\n" |
| 536 " -h, --help display this help and exit\n"), VERSION, name); |
535 " -h, --help display this help and exit\n"), VERSION, name); |
| 537 break; |
536 break; |
| 538 case 1: /* short message */ |
537 case 1: /* short message */ |
| 621 /*{"away", optional_argument, NULL, 'w'}, */ |
620 /*{"away", optional_argument, NULL, 'w'}, */ |
| 622 {"help", no_argument, NULL, 'h'}, |
621 {"help", no_argument, NULL, 'h'}, |
| 623 /*{"login", optional_argument, NULL, 'l'}, */ |
622 /*{"login", optional_argument, NULL, 'l'}, */ |
| 624 {"loginwin", no_argument, NULL, 'n'}, |
623 {"loginwin", no_argument, NULL, 'n'}, |
| 625 {"user", required_argument, NULL, 'u'}, |
624 {"user", required_argument, NULL, 'u'}, |
| 626 {"file", required_argument, NULL, 'f'}, |
625 {"config", required_argument, NULL, 'c'}, |
| 627 {"debug", no_argument, NULL, 'd'}, |
626 {"debug", no_argument, NULL, 'd'}, |
| 628 {"version", no_argument, NULL, 'v'}, |
627 {"version", no_argument, NULL, 'v'}, |
| 629 {"session", required_argument, NULL, 's'}, |
628 {"session", required_argument, NULL, 's'}, |
| 630 {0, 0, 0, 0} |
629 {0, 0, 0, 0} |
| 631 }; |
630 }; |
| 772 opt_acct = 1; |
771 opt_acct = 1; |
| 773 break; |
772 break; |
| 774 case 'd': /* debug */ |
773 case 'd': /* debug */ |
| 775 opt_debug = 1; |
774 opt_debug = 1; |
| 776 break; |
775 break; |
| 777 case 'f': |
776 case 'c': /* use specified config dir */ |
| 778 opt_rcfile_arg = g_strdup(optarg); |
777 set_gaim_user_dir(optarg); |
| 779 break; |
778 break; |
| 780 case 's': /* use existing session ID */ |
779 case 's': /* use existing session ID */ |
| 781 opt_session_arg = g_strdup(optarg); |
780 opt_session_arg = g_strdup(optarg); |
| 782 break; |
781 break; |
| 783 case 'v': /* version */ |
782 case 'v': /* version */ |