* RFA: clean up usage messages
@ 2004-10-19 19:40 Jim Blandy
2004-10-20 15:41 ` Kevin Buettner
0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2004-10-19 19:40 UTC (permalink / raw)
To: rda
If you invoke RDA via a long path, the usage message is pretty illegible.
2004-10-12 Jim Blandy <jimb@redhat.com>
* server.c (usage): Don't include the entire pathname in the usage
message.
Index: rda/unix/server.c
===================================================================
RCS file: /cvs/src/src/rda/unix/server.c,v
retrieving revision 1.8
diff -c -r1.8 server.c
*** rda/unix/server.c 7 Oct 2004 19:14:49 -0000 1.8
--- rda/unix/server.c 12 Oct 2004 23:17:56 -0000
***************
*** 250,255 ****
--- 250,259 ----
static void
usage (char *progname)
{
+ /* Remove any leading slashes from the executable name. */
+ if (strrchr (progname, '/'))
+ progname = strrchr (progname, '/') + 1;
+
fprintf (stderr,
"Usage: %s [-v] tcp-port-num executable-file [arguments ...]\n"
" or: %s -a [-v] tcp-port-num process-id\n"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: clean up usage messages
2004-10-19 19:40 RFA: clean up usage messages Jim Blandy
@ 2004-10-20 15:41 ` Kevin Buettner
2004-10-20 19:20 ` Jim Blandy
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Buettner @ 2004-10-20 15:41 UTC (permalink / raw)
To: Jim Blandy; +Cc: rda
On 19 Oct 2004 14:38:38 -0500
Jim Blandy <jimb@redhat.com> wrote:
> 2004-10-12 Jim Blandy <jimb@redhat.com>
>
> * server.c (usage): Don't include the entire pathname in the usage
> message.
Okay.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: clean up usage messages
2004-10-20 15:41 ` Kevin Buettner
@ 2004-10-20 19:20 ` Jim Blandy
0 siblings, 0 replies; 3+ messages in thread
From: Jim Blandy @ 2004-10-20 19:20 UTC (permalink / raw)
To: Kevin Buettner; +Cc: rda
Kevin Buettner <kevinb@redhat.com> writes:
> On 19 Oct 2004 14:38:38 -0500
> Jim Blandy <jimb@redhat.com> wrote:
>
> > 2004-10-12 Jim Blandy <jimb@redhat.com>
> >
> > * server.c (usage): Don't include the entire pathname in the usage
> > message.
>
> Okay.
Committed, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-20 19:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-19 19:40 RFA: clean up usage messages Jim Blandy
2004-10-20 15:41 ` Kevin Buettner
2004-10-20 19:20 ` Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).