diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-19 15:10:46 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-19 15:10:46 +0000 |
commit | 9b3bf5ac96248ef8c6aa778a87ac5d5107e03d53 (patch) | |
tree | 78fff733c8b80ec07a7be343fa85540246a2105b /main.c | |
parent | c599b29874a76cbd98a6af0d536d744e679bb1f5 (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |