chiark / gitweb /
*** empty log message ***
[sympathy.git] / apps / sympathy.c
1 /*
2  * sympathy.c:
3  *
4  * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
5  * All rights reserved.
6  *
7  */
8
9 static char rcsid[] = "$Id$";
10
11 /*
12  * $Log$
13  * Revision 1.4  2008/02/20 02:11:35  james
14  * *** empty log message ***
15  *
16  * Revision 1.3  2008/02/14 02:46:44  james
17  * *** empty log message ***
18  *
19  * Revision 1.2  2008/02/14 00:57:58  james
20  * *** empty log message ***
21  *
22  * Revision 1.1  2008/02/05 14:25:49  james
23  * *** empty log message ***
24  *
25  */
26
27 #include <sympathy.h>
28 #include "mainloop.h"
29
30 int
31 main (int argc, char *argv[])
32 {
33 int c;
34 extern char *optarg;
35 extern int optind, opterr, optopt;
36
37 int tflag=0,cflag=0,sflag=0,rflag=0;
38 int lflag=0,dflag=0,bflag=0,pflag=0;
39 int kflag=0;
40
41 int nhistory=200;
42 int baud=-1;
43 char *rid,*device_path;
44 char *socket_path;
45
46 while ((c=getopt(argc,argv,"tscr:d:pb:fL:Fk:n:"))!=EOF) {
47 switch(c) {
48         case 't':
49                 tflag++;
50                 break;
51         case 's':
52                 sflag++;
53                 break;
54         case 'c':
55                 cflag++;
56         
57
58
59
60
61
62
63 default:
64         usage();
65 }
66 }
67
68
69
70
71            "sympathy -t      [-l] [-d serialdev|-p] [-b baud] [-f] [-L log]\n"
72            "sympathy -s      [-l] [-d serialdev|-p] [-b baud] [-f] [-L log] [-F] [-k skt]\n"
73            "                      [-n hlines]\n"
74            "sympathy [-s -c] [-l] [-d serialdev|-p] [-b baud] [-f] [-L log] [-k skt]\n"
75            "                      [-n hlines]\n"
76            "sympathy -c      [-H] -k skt\n"
77            "sympathy -r id   [-H]\n"
78            "\n"
79
80   client ();
81 }