Mercurial > pidgin
comparison src/main.c @ 7102:c4faffdc0862
[gaim-migrate @ 7667]
Move show_usage() to main.c.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Oct 2003 04:29:44 +0000 |
parents | 7c04a0775918 |
children | 9220c7490cd1 |
comparison
equal
deleted
inserted
replaced
7101:6ca56650d11a | 7102:c4faffdc0862 |
---|---|
535 | 535 |
536 static GaimCoreUiOps * | 536 static GaimCoreUiOps * |
537 gaim_gtk_core_get_ui_ops(void) | 537 gaim_gtk_core_get_ui_ops(void) |
538 { | 538 { |
539 return &core_ops; | 539 return &core_ops; |
540 } | |
541 | |
542 static void | |
543 show_usage(int mode, const char *name) | |
544 { | |
545 switch (mode) { | |
546 case 0: /* full help text */ | |
547 printf(_("Gaim %s\n" | |
548 "Usage: %s [OPTION]...\n\n" | |
549 " -a, --acct display account editor window\n" | |
550 " -w, --away[=MESG] make away on signon (optional argument MESG specifies\n" | |
551 " name of away message to use)\n" | |
552 " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" | |
553 " account(s) to use, seperated by commas)\n" | |
554 " -n, --loginwin don't automatically login; show login window\n" | |
555 " -u, --user=NAME use account NAME\n" | |
556 " -f, --file=FILE use FILE as config\n" | |
557 " -d, --debug print debugging messages to stdout\n" | |
558 " -v, --version display the current version and exit\n" | |
559 " -h, --help display this help and exit\n"), VERSION, name); | |
560 break; | |
561 case 1: /* short message */ | |
562 printf(_("Gaim %s. Try `%s -h' for more information.\n"), VERSION, name); | |
563 break; | |
564 } | |
540 } | 565 } |
541 | 566 |
542 /* FUCKING GET ME A TOWEL! */ | 567 /* FUCKING GET ME A TOWEL! */ |
543 #ifdef _WIN32 | 568 #ifdef _WIN32 |
544 int gaim_main(HINSTANCE hint, int argc, char *argv[]) | 569 int gaim_main(HINSTANCE hint, int argc, char *argv[]) |