Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 4 docs/using-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ displayed.
The displayed help shows information about which Python component your command
corresponds to, as well as usage information for how to extend that command.

The environment variable, `FIRE_PAGER`, sets the default pager for help text
to the preferred program. For example, set `FIRE_PAGER=-` to print help text
on standard out.


### `--trace`: Getting a Fire trace <a name="trace-flag"></a>

Expand Down
4 changes: 4 additions & 0 deletions 4 fire/console/console_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def More(contents, out, prompt=None, check_pager=True):
return
if check_pager:
pager = encoding.GetEncodedValue(os.environ, 'PAGER', None)
fire_pager = encoding.GetEncodedValue(os.environ, 'FIRE_PAGER', None)
if fire_pager:
# FIRE_PAGER takes precedence to PAGER
pager = fire_pager
if pager == '-':
# Use the fallback Pager.
pager = None
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.