diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ps/keyword.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index 38f9c7e..1ab9253 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -264,8 +264,11 @@ parsefmt(const char *p) } } free(tempstr1); - if (!vhead) - errx(1, "no valid keywords (type ps -L for a list)"); + if (!vhead) { + warnx("no valid keywords; valid keywords:"); + showkey(); + exit(1); + } } static VAR * |