Bug 1219581

Summary: [CLI] particular help screens inconsistent in indication of default sub^n-commands
Product: Red Hat Enterprise Linux 7 Reporter: Jan Pokorný [poki] <jpokorny>
Component: pcsAssignee: Ivan Devat <idevat>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: low    
Version: 7.2CC: cluster-maint, rsteiger, tojeline
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.9.151-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 20:54:01 UTC 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:
Attachments:
Description Flags
proposed fix none

Description Jan Pokorný [poki] 2015-05-07 17:19:40 UTC
# pcs config -h
> [...]
> Commands:
>     [show]
>         View full cluster configuration

--> pcs config ~ pcs config show


# pcs resource -h
> [...]
> Commands:
>     show [resource id] [--full] [--groups]

--> so what will mere "pcs resource" do, that's a question
    (for a novice user)

+ examples sections should also remind user that "pcs resource"
  is equivalent to "pcs resource show"


Other corners should be checked as well.

Comment 3 Ivan Devat 2016-02-18 10:18:55 UTC
Created attachment 1128177 [details]
proposed fix

Comment 4 Mike McCune 2016-03-28 22:42:18 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 5 Ivan Devat 2016-05-31 12:03:39 UTC
Before fix:
[vm-rhel72-1 ~] $ rpm -q pcs
pcs-0.9.143-15.el7.x86_64

[vm-rhel72-1 ~] $ pcs resource -h |grep "show \["
    show [resource id] [--full] [--groups]
[vm-rhel72-1 ~] $ pcs stonith -h |grep "show \["
    show [stonith id] [--full]
[vm-rhel72-1 ~] $ pcs property -h |grep "show \["
    list|show [<property> | --all | --defaults]

After Fix:
[vm-rhel72-1 ~] $ rpm -q pcs
pcs-0.9.151-1.el7.x86_64

[vm-rhel72-1 ~] $ pcs resource -h |grep "show \["
    [show [resource id]] [--full] [--groups]
[vm-rhel72-1 ~] $ pcs stonith -h |grep "show \["
    [show [stonith id]] [--full]
[vm-rhel72-1 ~] $ pcs property -h |grep "show \["
    [list|show [<property> | --all | --defaults]] | [--all | --defaults]

Comment 9 errata-xmlrpc 2016-11-03 20:54:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2596.html