Issue #15359 has been updated by hsbt (Hiroshi SHIBATA).


I added the workaround for man path with ruby installation. But we should care about the convention of Linux distribution.

Welcome to additional patches.

----------------------------------------
Bug #15359: Bundler help is not properly integrated
https://bugs.ruby-lang.org/issues/15359#change-85214

* Author: vo.x (Vit Ondruch)
* Status: Closed
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* ruby -v: ruby 2.6.0dev (2018-11-26 trunk 65990) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
Bundler has nice help, but it is a bit complex [1]. It ideally needs `man` command installed but it definitely needs the help source files, which are not placed on proper location to be reachable by BUndler from StdLib. In that case, Bundler fallbacks to the simplest help provided by its Thor based CLI, but that is probably not the user experience integrated Bundler should provide.

For comparison, this is the official help:

~~~
 bundler --help
BUNDLE(1)							     BUNDLE(1)



NAME
       bundle - Ruby Dependency Management

... snip ...

OBSOLETE
       These commands are obsolete and should no longer be used

       o   bundle cache(1)

       o   bundle show(1)






				   July 2017			     BUNDLE(1)
~~~

and this is the help output provided by the bundled Bundler:

~~~
# bundler --help
Bundler commands:
  bundler add GEM VERSION         # Add gem to Gemfile and run bundle install

... snip ...

  bundler version                 # Prints the bundler's version information

Options:
      [--no-color]                 # Disable colorization in output
  -r, [--retry=NUM]                # Specify the number of times you wish to attempt network commands
  -V, [--verbose], [--no-verbose]  # Enable verbose output mode
~~~

[1]: https://github.com/bundler/bundler/blame/master/lib/bundler/cli.rb#L104



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>