diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-02-01 22:23:59 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-02-01 22:23:59 +0100 |
commit | 75157990fbf934ab19847c81981ee31397566308 (patch) | |
tree | e34be35b3b9a7677322cd2feec951c356c90e13d | |
parent | be177ab6c880d954338aabfc8eb3d44b2d0ff2e6 (diff) | |
download | lr-75157990fbf934ab19847c81981ee31397566308.tar.gz lr-75157990fbf934ab19847c81981ee31397566308.tar.xz lr-75157990fbf934ab19847c81981ee31397566308.zip |
document -G
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | lr.1 | 5 | ||||
-rw-r--r-- | lr.c | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md index 3fb6373..67f7d42 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Over ls: ## Usage: - lr [-0|-F|-l|-S|-f FMT] [-D] [-H|-L] [-1AQdhsx] [-U|-o ORD] [-t TEST]* PATH... + lr [-0|-F|-l|-S|-f FMT] [-D] [-H|-L] [-1AGQdhsx] [-U|-o ORD] [-t TEST]* PATH... * `-0`: output filenames seperated by NUL bytes (implies `-Q`). * `-F`: output filenames and an indicator of their file type (`*/=>@|`). @@ -52,6 +52,7 @@ Over ls: * `-L`: follow all symlinks. * `-1`: don't go below one level of directories. * `-A`: don't list files starting with a dot. +* `-G`: colorize output to tty. Use twice to force colorize. * `-Q`: don't shell quote file names. * `-d`: don't enter directories. * `-h`: print human readable size for `-l` (also `%s`). diff --git a/lr.1 b/lr.1 index 210d253..2578b2d 100644 --- a/lr.1 +++ b/lr.1 @@ -9,7 +9,7 @@ .Op Fl 0 | Fl F | Fl l | Fl S | Fl f Ar fmt .Op Fl D .Op Fl H | Fl L -.Op Fl 1AQdhsx +.Op Fl 1AGQdhsx .Op Fl U | Fl o Ar ord .Op Fl t Ar test .Ar path\ ... @@ -56,6 +56,9 @@ Don't list files starting with a dot. Don't shell quote file names. .It Fl d Don't enter directories. +.It Fl G +Colorize output to TTY. +Use twice to force colorized output. .It Fl h Print human readable size for .Fl l diff --git a/lr.c b/lr.c index 808e741..6421800 100644 --- a/lr.c +++ b/lr.c @@ -1636,7 +1636,7 @@ main(int argc, char *argv[]) case 't': expr = chain(expr, EXPR_AND, parse_expr(optarg)); break; case 'x': xflag++; break; default: - fprintf(stderr, "Usage: %s [-0|-F|-l|-S|-f FMT] [-D] [-H|-L] [-1AQdhsx] [-U|-o ORD] [-t TEST]* PATH...\n", argv0); + fprintf(stderr, "Usage: %s [-0|-F|-l|-S|-f FMT] [-D] [-H|-L] [-1AGQdhsx] [-U|-o ORD] [-t TEST]* PATH...\n", argv0); exit(2); } |