Bug 1335037

Summary: [RFE] Standardize output stream for help printed by lvm2 command
Product: [Community] LVM and device-mapper Reporter: Zdenek Kabelac <zkabelac>
Component: lvm2Assignee: LVM Team <lvm-team>
lvm2 sub component: Displaying and Reporting QA Contact: cluster-qe <cluster-qe>
Status: NEW --- Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, zkabelac
Version: unspecifiedFlags: rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zdenek Kabelac 2016-05-11 08:18:16 UTC
Description of problem:

Some lvm2 commands pass the 'help' output to the *stderr* stream.
e.g.  'lvs -o help'  

While otherwise its shown 'lvm help' on *stdout* stream.

Then there is also 'second' logic applied - when command gives
error (i.e. wrong option) such help is then printed on 'stderr'

As an effect when user wants to i.e. 'grep' help output, he
needs to figure out first where the output may come from,
since 'expected data' appear on 'error' stream in some cases.

Version-Release number of selected component (if applicable):
2.02.152

How reproducible:


Steps to Reproduce:
1. lvs -o help  2>/dev/null      >> no visible output
2.
3.

Actual results:
User requested 'help' is on stdour and stderr.

Expected results:
Users requested help always on should appear always on standard output stream (stdout)

Additional info: