summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WHATS_NEW1
-rw-r--r--tools/reporter.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index 89042597..442cbc23 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.68 -
===============================
+ Fix exit code when requesting help using documented -o help option.
Do not use internal DLM lock definitions in generic LVM2 clvmd code.
Add dmeventd man page.
Update lvresize/extend/reduce manpages with --nofsck, --resizefs options.
diff --git a/tools/reporter.c b/tools/reporter.c
index 1332cc39..32804f67 100644
--- a/tools/reporter.c
+++ b/tools/reporter.c
@@ -362,6 +362,8 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
separator, aligned, buffered,
headings, field_prefixes, quoted,
columns_as_rows))) {
+ if (!strcasecmp(options, "help") || !strcmp(options, "?"))
+ return r;
stack;
return ECMD_FAILED;
}