sys-apps/less: lesspipe: improve help text a bit
authorMike Frysinger <vapier@gentoo.org>
Wed, 6 Apr 2016 21:10:38 +0000 (17:10 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 6 Apr 2016 22:09:25 +0000 (18:09 -0400)
sys-apps/less/files/lesspipe.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 6edaa3c..d659e39
@@ -251,18 +251,19 @@ elif [[ $1 == "-h" || $1 == "--help" ]] ; then
                Usage: lesspipe <file>
 
                lesspipe specific settings:
-                 LESSCOLOR env     - toggle colorizing of output (no/yes/always)
+                 LESSCOLOR env     - toggle colorizing of output (no/yes/always; default: no)
                  LESSCOLORIZER env - program used to colorize output (default: code2color)
                  LESSIGNORE        - list of extensions to ignore (don't do anything fancy)
 
                You can create per-user filters as well by creating the executable file:
                  ~/.lessfilter
-               One argument is passed to it: the file to display.
+               One argument is passed to it: the file to display.  The script should exit 0
+               to indicate it handled the file, or non-zero to tell lesspipe to handle it.
 
                To use lesspipe, simply add to your environment:
                  export LESSOPEN="|lesspipe %s"
 
-               Run 'less --help' or 'man less' for more info
+               Run 'less --help' or 'man less' for more info.
        EOF
 elif [[ -d $1 ]] ; then
        ls -alF -- "$1"