chiark / gitweb /
*** empty log message ***
[sympathy.git] / apps / usage.c
index f86fa20906148e97e56880e83e0515dfa39e872d..07da7faebafcbc324680586f667c50933813504d 100644 (file)
@@ -10,6 +10,24 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.9  2008/02/24 00:43:55  james
+ * *** empty log message ***
+ *
+ * Revision 1.8  2008/02/24 00:42:53  james
+ * *** empty log message ***
+ *
+ * Revision 1.7  2008/02/23 11:48:52  james
+ * *** empty log message ***
+ *
+ * Revision 1.6  2008/02/20 18:49:11  staffcvs
+ * *** empty log message ***
+ *
+ * Revision 1.5  2008/02/20 18:31:44  james
+ * *** empty log message ***
+ *
+ * Revision 1.4  2008/02/20 17:18:33  james
+ * *** empty log message ***
+ *
  * Revision 1.3  2008/02/20 02:11:35  james
  * *** empty log message ***
  *
@@ -21,19 +39,22 @@ static char rcsid[] = "$Id$";
  *
  */
 
+#include <stdio.h>
+#include <stdlib.h>
 
 void
 usage (void)
 {
 
   fprintf (stderr, "Usage:\n"
-           "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"
+           "sympathy -t      [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-u]\n"
+           "sympathy -s      [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-u] [-F]\n"
+           "                      [-k skt] [-n hlines]\n"
+           "sympathy [-s -c] [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-u] [-k skt]\n"
+           "                      [-n hlines]\n"
+           "sympathy -c      [-H] [-u] -k skt\n"
+           "sympathy -r id   [-H] [-u]\n"
+           "sympathy {-l|-ls}\n"
            "sympathy -h\n"
            "\n"
            "Main mode:\n"
@@ -47,9 +68,10 @@ usage (void)
            "   -c     client mode: connect to server mode process\n"
            "   -r id  client mode: connect to server mode process on socket\n"
            "             ~/.sympathy/id\n"
+           "   -l or -ls  list active sockets in ~/.sympathy\n"
            "\n"
            "Options:\n"
-           "   -l  lock the serial device. By default sympathy checks that no\n"
+           "   -K  lock the serial device. By default sympathy checks that no\n"
            "          other process has create a lock file, and temporarily ceases\n"
            "          to access the serial port if it spots one. With this option\n"
            "          sympathy creates a lock file and prevents other programs\n"
@@ -68,9 +90,10 @@ usage (void)
            "   -H  instead of connecting the user's terminal to the session\n"
            "         emit HTML of the current state of the screen on stdout\n"
            "   -L  log activity on the device to the file log\n"
-          "   -n  hlines  the number of lines of history to store in the\n"
+           "   -n  hlines  the number of lines of history to store in the\n"
            "                 server, that are replayed on connexion\n"
-);
+           "   -u  don't emit utf-8 instead map all non ascii characters as ?\n");
+
 
   exit (1);
 }