-.\" $Id: mandocdb.8,v 1.23 2014/04/03 15:37:19 schwarze Exp $
+.\" $Id: mandocdb.8,v 1.24 2014/04/03 16:27:28 schwarze Exp $
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
.Nd index UNIX manuals
.Sh SYNOPSIS
.Nm
-.Op Fl aDnQW
+.Op Fl aDnpQ
.Op Fl T Cm utf8
.Op Fl C Ar file
.Nm
-.Op Fl aDnQW
+.Op Fl aDnpQ
.Op Fl T Cm utf8
.Ar dir ...
.Nm
-.Op Fl DnQW
+.Op Fl DnpQ
.Op Fl T Cm utf8
.Fl d Ar dir
.Op Ar
.Nm
-.Op Fl DnW
+.Op Fl Dnp
.Op Fl T Cm utf8
.Fl u Ar dir
.Op Ar
.It Fl n
Do not create or modify any database;
scan and parse only.
+.It Fl p
+Print warnings about potential problems with manual pages
+to the standard error output.
.It Fl Q
Quickly build reduced-size databases
by reading only the NAME sections of manuals.
.Fl a ,
.Fl n ,
and
-.Fl W .
+.Fl p .
All diagnostic messages are printed to the standard output;
the standard error output is not used.
.It Fl u Ar dir
.Ar
from the database in
.Ar dir .
-.It Fl W
-Print warnings about potential problems with manual pages
-to the standard error output.
.El
.Pp
If fatal parse errors are encountered while parsing, the offending file
argument first appeared in
.Nx 1.0 ;
the options
-.Fl dtu
+.Fl dpt
in
.Ox 2.7 ;
+the option
+.Fl u
+in
+.Ox 3.4 ;
and the options
-.Fl aCDnQTW
+.Fl aCDnQT
in
.Ox 5.6 .
.Sh AUTHORS
-/* $Id: mandocdb.c,v 1.125 2014/04/03 15:37:19 schwarze Exp $ */
+/* $Id: mandocdb.c,v 1.126 2014/04/03 16:27:28 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
path_arg = NULL;
op = OP_DEFAULT;
- while (-1 != (ch = getopt(argc, argv, "aC:Dd:nQT:tu:W")))
+ while (-1 != (ch = getopt(argc, argv, "aC:Dd:npQT:tu:v")))
switch (ch) {
case ('a'):
use_all = 1;
case ('n'):
nodb = 1;
break;
+ case ('p'):
+ warnings = 1;
+ break;
case ('Q'):
mparse_options |= MPARSE_QUICK;
break;
path_arg = optarg;
op = OP_DELETE;
break;
- case ('W'):
- warnings = 1;
+ case ('v'):
+ /* Compatibility with espie@'s makewhatis. */
break;
default:
goto usage;
ohash_delete(&mlinks);
return(exitcode);
usage:
- fprintf(stderr, "usage: %s [-aDnQW] [-C file] [-Tutf8]\n"
- " %s [-aDnQW] [-Tutf8] dir ...\n"
- " %s [-DnQW] [-Tutf8] -d dir [file ...]\n"
- " %s [-DnW] -u dir [file ...]\n"
+ fprintf(stderr, "usage: %s [-aDnpQ] [-C file] [-Tutf8]\n"
+ " %s [-aDnpQ] [-Tutf8] dir ...\n"
+ " %s [-DnpQ] [-Tutf8] -d dir [file ...]\n"
+ " %s [-Dnp] -u dir [file ...]\n"
" %s [-Q] -t file ...\n",
progname, progname, progname,
progname, progname);