diff options
author | Milan Broz <mbroz@redhat.com> | 2010-06-17 13:15:51 +0000 |
---|---|---|
committer | Milan Broz <mbroz@redhat.com> | 2010-06-17 13:15:51 +0000 |
commit | 4df5235d15560496c54364bc05e0f1a6fb2804ee (patch) | |
tree | 11d35108f020757b63f126ae6e23cc13bc948386 /tools/reporter.c | |
parent | d2031f6a1681a24f8544a8e0933b9cfddaf2b8cc (diff) | |
download | lvm2-4df5235d15560496c54364bc05e0f1a6fb2804ee.tar.gz lvm2-4df5235d15560496c54364bc05e0f1a6fb2804ee.tar.xz lvm2-4df5235d15560496c54364bc05e0f1a6fb2804ee.zip |
Fix exit code when requesting help using documented -o help option.
IOW fix lvs -o help
...
Command failed with status code 5.
Diffstat (limited to 'tools/reporter.c')
-rw-r--r-- | tools/reporter.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |