summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-19 15:10:46 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-19 15:10:46 +0000
commit9b3bf5ac96248ef8c6aa778a87ac5d5107e03d53 (patch)
tree78fff733c8b80ec07a7be343fa85540246a2105b /main.c
parentc599b29874a76cbd98a6af0d536d744e679bb1f5 (diff)
downloadmandoc-9b3bf5ac96248ef8c6aa778a87ac5d5107e03d53.tar.gz
If apropos(1) finds no match, print "nothing appropriate" to stderr
similar to what the old apropos did. Requested by and OK deraadt@.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index ed73e687..261bf4b7 100644
--- a/main.c
+++ b/main.c
@@ -357,6 +357,8 @@ main(int argc, char *argv[])
argc, argv, &res, &sz);
if (sz == 0) {
+ fprintf(stderr, "%s: nothing appropriate\n",
+ progname);
rc = MANDOCLEVEL_BADARG;
goto out;
}