From gordont@fountainhead.sd.bluemt.net  Tue Mar 27 18:19:07 2001
Return-Path: <gordont@fountainhead.sd.bluemt.net>
Received: from fountainhead.sd.bluemt.net (fountainhead.sd.bluemt.net [209.247.76.98])
	by hub.freebsd.org (Postfix) with ESMTP id 1E91F37B718
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Mar 2001 18:19:07 -0800 (PST)
	(envelope-from gordont@fountainhead.sd.bluemt.net)
Received: (from gordont@localhost)
	by fountainhead.sd.bluemt.net (8.11.3/8.11.3) id f2S2JR948906;
	Tue, 27 Mar 2001 18:19:27 -0800 (PST)
	(envelope-from gordont)
Message-Id: <200103280219.f2S2JR948906@fountainhead.sd.bluemt.net>
Date: Tue, 27 Mar 2001 18:19:27 -0800 (PST)
From: gordont@bluemtn.net
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Fetch usage inconsistent with man page
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         26160
>Category:       bin
>Synopsis:       Fetch usage inconsistent with man page
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 27 18:20:00 PST 2001
>Closed-Date:    Wed Mar 28 13:22:53 PST 2001
>Last-Modified:  Wed Mar 28 13:23:04 PST 2001
>Originator:     Gordon Tetlow
>Release:        FreeBSD 4.3-RC i386
>Organization:
Blue Mountain
>Environment:
System: FreeBSD fountainhead.sd.bluemt.net 4.3-RC FreeBSD 4.3-RC #0: Mon Mar 26 19:20:47 PST 2001 root@fountainhead.sd.bluemt.net:/local/usr.obj/usr/src/sys/FOUNTAINHEAD i386

>Description:
The fetch command usage shows:

Usage: fetch [-1AFHMPRabdlmnpqrstv] [-o outputfile] [-S bytes]
             [-B bytes] [-T seconds] [-w seconds]
             [-f file -h host [-c dir] | URL ...]

While the man page shows:

SYNOPSIS
     fetch [-146AFMPRUadlmnpqrsv] [-B bytes] [-S bytes] [-T seconds] [-o file]
           [-w seconds] [-h host] [-c dir] [-f file] [URL ...]

The differences are with the -4 -6 -U -b -t switches.

>How-To-Repeat:
fetch
man fetch
>Fix:
I fixed the usage function so that it more closely resembled the man page.

diff -u fetch.c.orig fetch.c
--- fetch.c.orig        Tue Mar 27 18:09:30 2001
+++ fetch.c     Tue Mar 27 18:17:18 2001
@@ -502,11 +502,10 @@
 void
 usage(void)
 {
-    /* XXX badly out of synch */
     fprintf(stderr,
-           "Usage: fetch [-1AFHMPRabdlmnpqrstv] [-o outputfile] [-S bytes]\n"
+           "Usage: fetch [-146AFMPRUadlmnpqrsv] [-o outputfile] [-S bytes]\n"
            "             [-B bytes] [-T seconds] [-w seconds]\n"
-           "             [-f file -h host [-c dir] | URL ...]\n"
+           "             [-f file] [-h host] [-c dir] [URL ...]\n"
        );
 }
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: dd 
Responsible-Changed-When: Tue Mar 27 18:40:17 PST 2001 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26160 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Wed Mar 28 13:22:53 PST 2001 
State-Changed-Why:  
Fixed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26160 
>Unformatted:
