tj / commander

The complete solution for Ruby command-line executables
http://visionmedia.github.com/commander
MIT License
1.09k stars 64 forks source link

respect the user's values for $LESS, if already set #66

Closed ellemenno closed 10 years ago

ellemenno commented 10 years ago

commander overrides any values the user may have already set for their LESS environment variable, and doesn't provide a way to configure what the override values will be.

this pull request changes the behavior from overriding to defaulting, so the user or host program has a chance to configure the pager behavior.

ggilder commented 10 years ago

Thanks for the patch!