Bug 1257622

Summary: 'bundle help list' shows help for 'bundle show'
Product: Red Hat Enterprise Linux 7 Reporter: Iveta Wiedermann <isenfeld>
Component: rubygem-bundlerAssignee: Vít Ondruch <vondruch>
Status: CLOSED WONTFIX QA Contact: Iveta Wiedermann <isenfeld>
Severity: low Docs Contact:
Priority: low    
Version: 7.2   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-31 08:29:23 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:

Description Iveta Wiedermann 2015-08-27 13:28:49 UTC
Description of problem:
'bundle help list' command provides the same output as for 'bundle help show' command. It looks like if no GEM is provided to 'bundle show' its behaviour is same as for 'bundle list' but still I think 'bundle help list' should not have in usage 'bundle show GEM [OPTIONS]'.
And if 'bundle show' without a GEM specified should be the same as 'bundle list' it should be also mentioned in man page.


Version-Release number of selected component (if applicable):
rubygem-bundler-1.7.8-3.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1.bundle help show
2.bundle help list
3.and compare the outputs

Actual results:
bundle help list

Usage:
  bundle show GEM [OPTIONS]

Options:
      [--paths=List the paths of all gems that are required by your Gemfile.], [--no-paths]  
      [--no-color=Disable colorization in output], [--no-no-color]                           
  -V, [--verbose=Enable verbose output mode], [--no-verbose]                                 
  -r, [--retry=Specify the number of times you wish to attempt network commands]             

Description:
  Show lists the names and versions of all gems that are required by your Gemfile. Calling show with [GEM] 
  will list the exact location of that gem on your machine.

Expected results:
bundle list should have its own description in help

Additional info:

Comment 1 Vít Ondruch 2015-08-31 08:29:23 UTC
Thank you for your report.

Looking at the source code [1], it seems that the "list" and "show" commands are equivalent. Nevertheless, the "bundle help" has different description for them. So I asked upstream [2] to clarify this.

However, I am closing this issue, since I don't think it is worth of separate fix in RHEL.



[1] https://github.com/bundler/bundler/blob/master/lib/bundler/cli.rb#L206
[2] https://github.com/bundler/bundler/issues/3972