Re: [PATCH v2 2/2] grep: long context options
- From
- Tait <git.git@t41t.com>
- Date
- Aug 2, 2011, 01:01 UTC
- Message-ID
- <20110802010143.GL13795@ece.pdx.edu>
- In-Reply-To
- <4E36E0EC.1000508@lsrfire.ath.cx>
René Scharfe <rene.scharfe_lsrfire.ath.cx> said (on 2011/08/01):
> Take long option names for -A (--after-context), -B (--before-context) > and -C (--context) from GNU grep and add a similar long option name > for -W (--function-context).
Why not just add --context=function? Then when I want --context=indent to give context based on the indent-level, it is an intuitive extension of the existing options. (Of course, --context=<number> would still do exactly what it does now.)