--- a/main.c Mon Sep 24 13:56:13 2007 +0200
+++ b/main.c Mon Sep 24 13:59:40 2007 +0200
@@ -25,7 +25,7 @@
struct Command_line command_line;
-static const char version[] = "0.1";
+static const char version[] = "0.2";
static int showhelp(const char *pname)
{
@@ -34,8 +34,10 @@
version);
printf("usage: %s [opts] [appcommand] [param1] [param2] ...\n", pname);
printf(" If you give _appcommand_, it starts the application and\n");
- printf(" a stdin server on $SM_SOCKET or /tmp/socket-sm.UID.\n");
- printf(" If not given, it starts a stdin client for the same socket.\n");
+ printf(" serves it through a Unix socket on $SM_SOCKET or "
+ "/tmp/socket-sm.UID,\n");
+ printf(" unless '-p' is used.\n");
+ printf(" Without _appcomand_, starts a the Unix socket client.\n");
printf("options: \n");
printf(" -h Show help.\n");
printf(" -P Run the child as connected to a pipe (default).\n");
@@ -45,8 +47,9 @@
"\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(" -p NUM Listen to tcp port NUM, and not listen to any Unix socket."
- "\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");
printf(" -r Send xterm's resize control string to clients.\n");
return 0;