summaryrefslogtreecommitdiff
path: root/apps/errstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/errstr.c')
-rw-r--r--apps/errstr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/errstr.c b/apps/errstr.c
index 7dbc866803..8d90714e37 100644
--- a/apps/errstr.c
+++ b/apps/errstr.c
@@ -67,11 +67,12 @@
enum options {
- OPT_ERR = -1, OPT_EOF = 0,
+ OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
OPT_STATS
};
static OPTIONS errstr_options[] = {
+ { "help", OPT_HELP, '-', "Display this summary" },
{ "stats", OPT_STATS, '-',
"Print internal hashtable statistics (long!)" },
{ NULL }
@@ -90,6 +91,7 @@ int errstr_main(int argc, char **argv)
switch (o) {
case OPT_EOF:
case OPT_ERR:
+ case OPT_HELP:
opt_help(errstr_options);
return 1;
case OPT_STATS: