diff index.t2t @ 19:ddc56395ee8b

update index.* documentation with usage text
author paulo@localhost
date Thu, 29 Mar 2012 00:06:10 -0700
parents d516b77d4916
children
line diff
     1.1 --- a/index.t2t	Mon Dec 13 23:46:01 2010 -0800
     1.2 +++ b/index.t2t	Thu Mar 29 00:06:10 2012 -0700
     1.3 @@ -1,6 +1,6 @@
     1.4  rcg: regex colored grep
     1.5  Paulo Ang (pbba13@gmail.com)
     1.6 -2010-12-13
     1.7 +2012-03-29
     1.8  
     1.9  
    1.10  //rcg// stands for //regex colored grep// and makes it easy to colorify your xterm-compatible terminal output.
    1.11 @@ -8,3 +8,24 @@
    1.12  The inspiration came from hack #75 from //Linux Server Hacks// by Rob Flickenger (O'Reilly). My version is written in C.
    1.13  
    1.14  Download the latest source code from [here /hg/rcg/rcg-1/rcg.c].
    1.15 +
    1.16 +```
    1.17 +Usage: rcg [options] <PATTERN> 
    1.18 +
    1.19 +Options: 
    1.20 +  -l, --line           Highlight whole line 
    1.21 +  -B, --bold           Bold 
    1.22 +  -b <color>           Background color 
    1.23 +  -f <color>           Foreground color 
    1.24 +
    1.25 +<color> can be one of the following: 
    1.26 +  black 
    1.27 +  red 
    1.28 +  green 
    1.29 +  brown 
    1.30 +  blue 
    1.31 +  magenta 
    1.32 +  cyan 
    1.33 +  white 
    1.34 +  default 
    1.35 +```