Date: Sun, 21 Mar 2004 13:26:31 -0800 (PST) From: Daniel Klein <dvk@lonewolf.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/64548: -V, --version doesn't work in wdiff Message-ID: <200403212126.i2LLQV2N089089@www.freebsd.org> Resent-Message-ID: <200403212130.i2LLUKec035591@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 64548 >Category: ports >Synopsis: -V, --version doesn't work in wdiff >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 21 13:30:20 PST 2004 >Closed-Date: >Last-Modified: >Originator: Daniel Klein >Release: 4.9 >Organization: >Environment: FreeBSD howl.lonewolf.com 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003 root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC i386 >Description: The man page for wdiff says that there is a -v and a --version option. However, "wdiff --help" says that there is a -V option. None of -v, -V or --version works. The problem is that getopts is looking for -V, but the switch statement below is looking for -v. Personally, I think -v is correct and standard, but the code recognizes none of the possibilities. >How-To-Repeat: run wdiff -v :-) >Fix: Change the options string to add a -v switch, and change the switch statement to also recognize -V >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403212126.i2LLQV2N089089>