Skip to content

Improve bfs -help with LESS already set #71

@tavianator

Description

@tavianator

RE: @markus-oberhumer's #68

I think it makes sense to not override LESS, in case it's necessary for less to work properly in the user's environment. But I can think of a couple improvements that would make sense:

  • Override LESS if it's empty. Similar to the new PAGER handling. I think git ought to do the same thing.
  • If LESS is nonempty, don't colorize the help. This should at least make it readable for you. And if you want the colors, you could do LESS= bfs -help.

But I just thought of a complication: if $PAGER != less, it's weird for $LESS to affect the behaviour of bfs help. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions