X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/bbb57b4a8f2ef35bf61fa83816c3ffc3bf23af73..0a1543ea454e4300aeb1b71cc8e7dd99c04d5dbc:/wtf/wtf.6 diff --git a/wtf/wtf.6 b/wtf/wtf.6 index d7f0f52b..c2764e7f 100644 --- a/wtf/wtf.6 +++ b/wtf/wtf.6 @@ -1,41 +1,47 @@ -.\" $NetBSD: wtf.6,v 1.15 2012/10/03 19:50:43 wiz Exp $ +.\" $NetBSD: wtf.6,v 1.19 2015/04/22 15:04:57 christos Exp $ .\" .\" Public Domain .\" -.Dd October 3, 2012 +.Dd April 22, 2015 .Dt WTF 6 .Os .Sh NAME .Nm wtf -.Nd translate acronyms +.Nd look up terms .Sh SYNOPSIS .Nm .Op Fl f Ar dbfile +.Op Fl o .Op Ar is -.Ar acronym ... +.Ar term ... .Sh DESCRIPTION The .Nm -utility displays the expansion of one or more acronyms -specified on the command line. -If an acronym is not in any of the acronym databases, +utility looks up the meaning of one or more +.Ar term +operands specified on the command line. +.Pp +.Ar term +will first be searched for as an acronym in the acronym databases, which are expected to be in the format -.Dq acronym[tab]meaning , +.Dq acronym[tab]meaning . +If no match has been found, .Nm -will check to see if it is known by +will check to see if the term is known by .Xr whatis 1 , .Xr pkg_info 1 , -or via pkgsrc's internal help mechanism, +or, when called from within a pkgsrc package directory, +pkgsrc's internal help facility, .Dq make help topic=XXX . .Pp -If -.Dq is -is specified on the command line, it will be ignored, allowing the +The optional +.Ar is +operand will be ignored, allowing the fairly natural .Dq wtf is WTF usage. .Pp -The following options are available: +The following option is available: .Bl -tag -width flag .It Fl f Ar dbfile Overrides the default list of acronym databases, bypassing the value of the @@ -45,6 +51,13 @@ Unlike this variable the .Fl f option only accepts one file name as an argument, but it may be given multiple times to specify more than one file to use. +.It Fl o +Include acronyms that could be considered offensive to some. +Please consult +.Xr fortune 6 +for more information about the +.Fl o +flag. .El .Sh ENVIRONMENT .Bl -tag -width ACRONYMDB @@ -59,14 +72,19 @@ acronym databases. .Bl -tag -width /usr/share/misc/acronyms.XXXX -compact .It Pa /usr/share/misc/acronyms default acronym database. +.It Pa /usr/share/misc/acronyms-o +default offensive acronym database. .It Pa /usr/share/misc/acronyms.comp default computer-related acronym database. .El .Sh SEE ALSO .Xr make 1 , .Xr pkg_info 1 , -.Xr whatis 1 +.Xr whatis 1 , +.Xr fortune 6 .Sh HISTORY .Nm first appeared in .Nx 1.5 . +Initially it only translated acronyms; +functionality to look up the meaning of terms in other sources was added later.