Bug 1335037 - [RFE] Standardize output stream for help printed by lvm2 command
Summary: [RFE] Standardize output stream for help printed by lvm2 command
Keywords:
Status: NEW
Alias: None
Product: LVM and device-mapper
Classification: Community
Component: lvm2
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: LVM Team
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-11 08:18 UTC by Zdenek Kabelac
Modified: 2023-08-10 15:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:
rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?


Attachments (Terms of Use)

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:


Note You need to log in before you can comment on or make changes to this bug.