mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
List valid keywords, ala kill(1), rather than the csh builtin kill, which
tells people to type kill -l, when no valid ones are specified. Sponsored by: Bright Path Solutions MFC after: 4 days
This commit is contained in:
parent
36b025da93
commit
8dd2eb05bf
1 changed files with 5 additions and 2 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Reference in a new issue