Skip to content

Support console pager for help commands #39

Closed
@julen

Description

In a *nix environment with bash as the interpreter, when one runs git help <command> (or git command --help), it outputs what looks to be a man page. It would come handy if the output used a pager (such as less), instead of concatenating the output to the console.

git for instance uses a pager but allows customizing it via the GIT_PAGER environment variable, falling back to PAGER and then to less.

I also realize the probably intended purpose of serge help <command> is to open up a web browser with the local HTML docs for the given command. That might make sense in a Windows environment, although for *nix and server environments this is not definitely what one would expect. Maybe a flag can be added to try to trigger opening the docs in a browser.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions