ports/64548: -V, --version doesn't work in wdiff

Daniel Klein dvk at lonewolf.com
Sun Mar 21 21:30:21 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list