From: nobu@...
Date: 2020-04-04T02:37:00+00:00
Subject: [ruby-core:97706] [Ruby master Feature#16754] Pager for `--help`

Issue #16754 has been updated by nobu (Nobuyoshi Nakada).


Yes, this uses `RUBY_PAGER` if it is defined, or `PAGER` if defined.
The pager is used if stdin and stdout are tty both, redirecting stdin stops it.

```
ruby --help <&-
```
```
ruby --help </dev/null
```

And now empty `PAGER` value is ignored.

```
RUBY_PAGER= ruby --help
```

----------------------------------------
Feature #16754: Pager for `--help`
https://bugs.ruby-lang.org/issues/16754#change-84910

* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Priority: Normal
----------------------------------------
The help message by `--help` is getting longer and longer, and it often exceeds usual terminal windows.
How about to show the message via pager when running on a tty?

And although the message is sectioned, they are less remarkable in the long text, and should be highlighted more, like as the attached screenshot for example.

https://github.com/ruby/ruby/pull/3000

---Files--------------------------------
screenshot-help.gif (38 KB)


-- 
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>