[w3m-dev-en 00088] Re: usage message

From: Ken Yap (ken@nlc.net.au)
Date: Thu Feb 24 2000 - 09:53:16 CST


>Has somebody patched 0.16 to not print the usage message in the case
>the server could not be reached, or some other network error? It's not
>really a usage error in this case. It's hard to see the error when the
>text has scrolled off the screen. I can probably work out where to change
>it but if someone has already done it for 0.17...

Well, the change is so small that I enclose it:

--- main.c.old Fri Jan 21 18:18:58 2000
+++ main.c Fri Feb 25 02:51:51 2000
@@ -489,7 +489,8 @@
     }
     deleteFiles();
     fmTerm();
- usage();
+ fprintf(stderr, "For help, run w3m -help\n");
+ exit(1);
   }
 #ifdef SIGWINCH
   signal(SIGWINCH, resize_hook);



This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT