Going to 0.3.
authorviric@llimona
Wed, 26 Sep 2007 23:46:09 +0200
changeset 50 2c88b9d375d7
parent 49 1cead94cfd99
child 51 da017c618a9c
Going to 0.3.
main.c
--- a/main.c	Wed Sep 26 23:44:20 2007 +0200
+++ b/main.c	Wed Sep 26 23:46:09 2007 +0200
@@ -25,7 +25,7 @@
 
 struct Command_line command_line;
 
-static const char version[] = "0.2";
+static const char version[] = "0.3";
 
 static int showhelp(const char *pname)
 {
@@ -47,16 +47,16 @@
     printf(" -N MAX Serve at most MAX sockets for each transport (1 default)."
             "\n");
     printf(" -w     The remote clients can write to the application.\n");
-    printf(" -x     The remote clients end will close app's stdin.\n");
+    printf(" -C     The remote clients end will close app's stdin.\n");
     printf(" -p NUM Listen to tcp port NUM for 'telnet', and not listen to "
             "any\n"
            "        Unix socket.\n");
     printf(" -E     Echo remote input to the server terminal.\n");
 #ifdef linux
-    printf(" -e dev Serve/connect using raw ethernet, device 'dev'.\n");
+    printf(" -e dev Also serve/connect using raw ethernet, device 'dev'.\n");
     printf(" -c adr Connect to address (MAC if eth).\n");
 #endif /* linux */
-    printf(" -r     Send xterm's resize control string to clients.\n");
+    printf(" -x     Send xterm's resize control string to clients.\n");
     return 0;
 }
 
@@ -116,7 +116,7 @@
     extern int optind, opterr, optopt;
 
     while(1) {
-        c = my_getopt(argc, argv, "tp:nBrdPN:hwxE"
+        c = my_getopt(argc, argv, "tp:nBxdPN:hwCE"
 #ifdef linux
                 "c:e:"
 #endif /* linux */
@@ -158,10 +158,10 @@
             case 'w':
                 command_line.s_param.client_can_write = 1;
                 break;
-            case 'x':
+            case 'C':
                 command_line.s_param.client_may_close_app_stdin = 1;
                 break;
-            case 'r':
+            case 'x':
                 command_line.s_param.send_xterm_resize = 1;
                 break;
             case 'E':