chiark / gitweb /
*** empty log message ***
[sympathy.git] / apps / usage.c
index c0b81f376b052fd7a11d3a8f27761b35d7c188ce..f86fa20906148e97e56880e83e0515dfa39e872d 100644 (file)
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.3  2008/02/20 02:11:35  james
+ * *** empty log message ***
+ *
  * Revision 1.2  2008/02/16 10:58:52  james
  * *** empty log message ***
  *
@@ -24,20 +27,23 @@ usage (void)
 {
 
   fprintf (stderr, "Usage:\n"
-           "sympathy -t      [-l] [-d serialdev|-p] [-b baud] [-h] [-L log]\n"
-           "sympathy -s      [-l] [-d serialdev|-p] [-b baud] [-h] [-L log] [-f] [-k skt]\n"
-           "sympathy [-s -c] [-l] [-d serialdev|-p] [-b baud] [-h] [-L log] [-k skt]\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 -h\n"
            "\n"
            "Main mode:\n"
            "   -t  terminal emulator mode: one process is started which reads from\n"
            "          the serial device or ptty and writes to the users terminal.\n"
-           "   -s  server mode: a process is started (and daemonized unless -f is\n"
+           "   -s  server mode: a process is started (and daemonized unless -F is\n"
            "          given) which listens on a socket, and reads from the serial\n"
            "          device or ptty.\n"
            "   -s -c  server and client mode. Fork a server and connect a client\n"
-           "            incompatible with -f. This is the default mode\n"
+           "            incompatible with -F. This is the default mode\n"
            "   -c     client mode: connect to server mode process\n"
            "   -r id  client mode: connect to server mode process on socket\n"
            "             ~/.sympathy/id\n"
@@ -54,14 +60,17 @@ usage (void)
            "           no -d option is specified\n"
            "   -b baud  the baudrate to set. If omitted sympathy does not set\n"
            "              a baudrate and uses the current setting\n"
-           "   -h  set RTS/CTS flowcontrol. By default sympathy disables flow\n"
+           "   -f  set RTS/CTS flowcontrol. By default sympathy disables flow\n"
            "         control\n"
            "   -k socket  explicity set the name of the socket, by default\n"
            "                sympathy will use ~/.sympathy/$pid\n"
-           "   -f  do not detach, run the server in the foreground\n"
+           "   -F  do not detach, run the server in the foreground\n"
            "   -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");
+           "   -L  log activity on the device to the file log\n"
+          "   -n  hlines  the number of lines of history to store in the\n"
+           "                 server, that are replayed on connexion\n"
+);
 
   exit (1);
 }