X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=apps%2Fsympathy.c;h=4b67502d5e74f112466ce25426845c31326089f1;hb=baf18b2cee22c225c720f2b07a8c8b2df870abcf;hp=a9140f889bf22e1a1a71f80d70abf81474d70e2e;hpb=db6be819024985738c7e846ce11f40f4fc8d1aa6;p=sympathy.git diff --git a/apps/sympathy.c b/apps/sympathy.c index a9140f8..4b67502 100644 --- a/apps/sympathy.c +++ b/apps/sympathy.c @@ -10,6 +10,12 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.4 2008/02/20 02:11:35 james + * *** empty log message *** + * + * Revision 1.3 2008/02/14 02:46:44 james + * *** empty log message *** + * * Revision 1.2 2008/02/14 00:57:58 james * *** empty log message *** * @@ -19,10 +25,57 @@ static char rcsid[] = "$Id$"; */ #include -#include "client.h" +#include "mainloop.h" -int main(int argc,char *argv[]) +int +main (int argc, char *argv[]) { +int c; +extern char *optarg; +extern int optind, opterr, optopt; + +int tflag=0,cflag=0,sflag=0,rflag=0; +int lflag=0,dflag=0,bflag=0,pflag=0; +int kflag=0; + +int nhistory=200; +int baud=-1; +char *rid,*device_path; +char *socket_path; + +while ((c=getopt(argc,argv,"tscr:d:pb:fL:Fk:n:"))!=EOF) { +switch(c) { + case 't': + tflag++; + break; + case 's': + sflag++; + break; + case 'c': + cflag++; + + + + + + + +default: + usage(); +} +} + + + + + "sympathy -t [-l] [-d serialdev|-p] [-b baud] [-f] [-L log]\n" + "sympathy -s [-l] [-d serialdev|-p] [-b baud] [-f] [-L log] [-F] [-k skt]\n" + " [-n hlines]\n" + "sympathy [-s -c] [-l] [-d serialdev|-p] [-b baud] [-f] [-L log] [-k skt]\n" + " [-n hlines]\n" + "sympathy -c [-H] -k skt\n" + "sympathy -r id [-H]\n" + "\n" -client(); + client (); }